Safe Haskell | None |
---|---|
Language | GHC2024 |
Lazy.Scope
Documentation
data LazyT (s :: k) (m :: k1 -> Type) (a :: k1) Source #
Instances
MonadReader r m => MonadReader r (LazyT s m) Source # | |
MonadState s' m => MonadState s' (LazyT s m) Source # | |
MonadTrans (LazyT s :: (Type -> Type) -> Type -> Type) Source # | |
Defined in Lazy.Scope.Type | |
Applicative m => Applicative (LazyT s m) Source # | |
Functor m => Functor (LazyT s m) Source # | |
Monad m => Monad (LazyT s m) Source # | |
MonadFail m => MonadFail (LazyT s m) Source # | |
Defined in Lazy.Scope.Type | |
MonadIO m => MonadIO (LazyT s m) Source # | |
Defined in Lazy.Scope.Type | |
MonadUnliftIO m => MonadUnliftIO (LazyT s m) Source # | |
Defined in Lazy.Scope.Type |
Instances
data HandlePosn (s :: k) Source #
Instances
Show (HandlePosn s) Source # | |
Defined in Lazy.Scope.Type Methods showsPrec :: Int -> HandlePosn s -> ShowS # show :: HandlePosn s -> String # showList :: [HandlePosn s] -> ShowS # | |
Eq (HandlePosn s) Source # | |
Defined in Lazy.Scope.Type |
type Bs (s :: k) = Scoped s LByteString Source #
data Scoped (s :: k) a Source #
Instances
Applicative (Scoped s) Source # | |
Functor (Scoped s) Source # | |
NFData a => NFData (Scoped s a) Source # | |
Defined in Lazy.Scope.Type | |
Monoid a => Monoid (Scoped s a) Source # | |
Semigroup a => Semigroup (Scoped s a) Source # | |
IsString a => IsString (Scoped s a) Source # | |
Defined in Lazy.Scope.Type Methods fromString :: String -> Scoped s a # | |
Bounded a => Bounded (Scoped s a) Source # | |
Num a => Num (Scoped s a) Source # | |
Defined in Lazy.Scope.Type | |
Show a => Show (Scoped s a) Source # | |
Eq a => Eq (Scoped s a) Source # | |
Ord a => Ord (Scoped s a) Source # | |
hGetContents :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m (Bs s) Source #
hGetNonBlocking :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Int -> LazyT s m (Bs s) Source #
hPutNonBlocking :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Bs s -> LazyT s m (Bs s) Source #
hFileSize :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Integer Source #
hGet :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Int -> LazyT s m ByteString Source #
hGetBuf :: forall {k} (m :: Type -> Type) (s :: k) a. MonadIO m => Handle s -> Ptr a -> Int -> LazyT s m Int Source #
hGetBufNonBlocking :: forall {k} (m :: Type -> Type) (s :: k) a. MonadIO m => Handle s -> Ptr a -> Int -> LazyT s m Int Source #
hGetBufSome :: forall {k} (m :: Type -> Type) (s :: k) a. MonadIO m => Handle s -> Ptr a -> Int -> LazyT s m Int Source #
hGetBuffering :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m BufferMode Source #
hGetChar :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Char Source #
hGetEcho :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Bool Source #
hGetEncoding :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m (Maybe TextEncoding) Source #
hGetLine :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m String Source #
hGetPosn :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m (HandlePosn s) Source #
hIsReadable :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Bool Source #
hIsSeekable :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Bool Source #
hIsTerminalDevice :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Bool Source #
hIsWritable :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Bool Source #
hLookAhead :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Char Source #
hPrint :: forall {k} (m :: Type -> Type) a (s :: k). (MonadIO m, Show a) => Handle s -> a -> LazyT s m () Source #
hPut :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> ByteString -> LazyT s m () Source #
hPutBs :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Bs s -> LazyT s m () Source #
hPutBuf :: forall {k} (m :: Type -> Type) (s :: k) a. MonadIO m => Handle s -> Ptr a -> Int -> LazyT s m () Source #
hPutBufNonBlocking :: forall {k} (m :: Type -> Type) (s :: k) a. MonadIO m => Handle s -> Ptr a -> Int -> LazyT s m Int Source #
hPutChar :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Char -> LazyT s m () Source #
hPutStr :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> String -> LazyT s m () Source #
hPutStrLn :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> String -> LazyT s m () Source #
hSeek :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> SeekMode -> Integer -> LazyT s m () Source #
hSetBinaryMode :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Bool -> LazyT s m () Source #
hSetBuffering :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> BufferMode -> LazyT s m () Source #
hSetEcho :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Bool -> LazyT s m () Source #
hSetEncoding :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> TextEncoding -> LazyT s m () Source #
hSetFileSize :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Integer -> LazyT s m () Source #
hSetNewlineMode :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> NewlineMode -> LazyT s m () Source #
hSetPosn :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => HandlePosn s -> LazyT s m () Source #
hShow :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m String Source #
hTell :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> LazyT s m Integer Source #
hWaitForInput :: forall {k} (m :: Type -> Type) (s :: k). MonadIO m => Handle s -> Int -> LazyT s m Bool Source #
foldl' :: forall {k} (s :: k) a. (Scoped s a -> Word8 -> Scoped s a) -> Scoped s a -> Bs s -> Scoped s a Source #
foldr' :: forall {k} (s :: k) a. (Word8 -> Scoped s a -> Scoped s a) -> Scoped s a -> Bs s -> Scoped s a Source #
index :: forall {k} (s :: k). HasCallStack => Bs s -> I64 s -> W8 s Source #
intersperse :: forall {k} (s :: k). W8 s -> Bs s -> Bs s Source #
isPrefixOf :: forall {k} (s :: k). Bs s -> Bs s -> B s Source #
isSuffixOf :: forall {k} (s :: k). Bs s -> Bs s -> B s Source #
mapAccumL :: forall {k} acc (s :: k). (acc -> W8 s -> (acc, W8 s)) -> acc -> Bs s -> (acc, Bs s) Source #
mapAccumR :: forall {k} acc (s :: k). (acc -> W8 s -> (acc, W8 s)) -> acc -> Bs s -> (acc, Bs s) Source #
mapLbs :: forall {k} (s :: k). (LByteString -> LByteString) -> Bs s -> Bs s Source #
maximum :: forall {k} (s :: k). HasCallStack => Bs s -> W8 s Source #
minimum :: forall {k} (s :: k). HasCallStack => Bs s -> W8 s Source #
stripPrefix :: forall {k} (s :: k). Bs s -> Bs s -> Scoped s (Maybe LByteString) Source #
stripSuffix :: forall {k} (s :: k). Bs s -> Bs s -> Scoped s (Maybe LByteString) Source #
toBs :: forall {k} (s :: k). LByteString -> Bs s Source #
unScope :: forall {k} a (m :: Type -> Type) (s :: k). (NFData a, Monad m) => Scoped s a -> LazyT s m a Source #
class WithFile a where Source #
Methods
withFile :: forall {k} r m. (NFData r, MonadUnliftIO m) => a -> IOMode -> (forall (s :: k). Handle s -> LazyT s m r) -> m r Source #
withBinaryFile :: forall {k} r m. (NFData r, MonadUnliftIO m) => a -> IOMode -> (forall (s :: k). Handle s -> LazyT s m r) -> m r Source #
Instances
WithFile FilePath Source # | |
Defined in Lazy.Scope.Io |