Movatterモバイル変換
[0]ホーム
{-# LANGUAGE NoImplicitPrelude #-}{-# OPTIONS_HADDOCK hide #-}------------------------------------------------------------------------------- |-- Module : GHC.GHCi-- Copyright : (c) The University of Glasgow 2012-- License : see libraries/base/LICENSE---- Maintainer : cvs-ghc@haskell.org-- Stability : internal-- Portability : non-portable (GHC Extensions)---- The GHCi Monad lifting interface.---- EXPERIMENTAL! DON'T USE.-------------------------------------------------------------------------------moduleGHC.GHCi{-# WARNING"This is an unstable interface."#-}(GHCiSandboxIO(..),NoIO())whereimportGHC.Base(IO(),Monad,Functor(fmap),Applicative(..),(>>=),id,(.),ap)-- | A monad that can execute GHCi statements by lifting them out of-- m into the IO monad. (e.g state monads)class(Monadm)=>GHCiSandboxIOmwhereghciStepIO::ma->IOa-- | @since 4.4.0.0instanceGHCiSandboxIOIOwhereghciStepIO=id-- | A monad that doesn't allow any IO.newtypeNoIOa=NoIO{noio::IOa}-- | @since 4.8.0.0instanceFunctorNoIOwherefmapf(NoIOa)=NoIO(fmapfa)-- | @since 4.8.0.0instanceApplicativeNoIOwherepurea=NoIO(purea)(<*>)=ap-- | @since 4.4.0.0instanceMonadNoIOwhere(>>=)kf=NoIO(noiok>>=noio.f)-- | @since 4.4.0.0instanceGHCiSandboxIONoIOwhereghciStepIO=noio
[8]ページ先頭