| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Parsley.Internal.Backend.Machine.InputRep
Synopsis
- type family Rep input where ...
- type family RepKind input where ...
- intSame :: Code Int# -> Code Int# -> Code Bool
- intLess :: Code Int# -> Code Int# -> Code Bool
- min# :: Int# -> Int# -> Int#
- max# :: Int# -> Int# -> Int#
- type OffWith ts = (# Int#, ts #)
- offWith :: Code ts -> Code (OffWith ts)
- offWithSame :: Code (# Int#, ts #) -> Code (# Int#, ts #) -> Code Bool
- offWithShiftRight :: Code (Int -> ts -> ts) -> Code (# Int#, ts #) -> Code Int# -> Code (# Int#, ts #)
- type UnpackedLazyByteString = (# Int#, Addr#, ForeignPtrContents, Int#, Int#, ByteString #)
- emptyUnpackedLazyByteString :: Code Int# -> Code UnpackedLazyByteString
- data Stream
- dropStream :: Int -> Stream -> Stream
- offsetText :: Code Text -> Code Int
- representationTypes :: [Q Type]
- textShiftRight :: Text -> Int -> Text
- textShiftLeft :: Text -> Int -> Text
- byteStringShiftRight :: UnpackedLazyByteString -> Int# -> UnpackedLazyByteString
- byteStringShiftLeft :: UnpackedLazyByteString -> Int# -> UnpackedLazyByteString
Documentation
type family RepKind input where ... Source #
Equations
| RepKind [Char] = IntRep | |
| RepKind (UArray Int Char) = IntRep | |
| RepKind Text16 = IntRep | |
| RepKind ByteString = IntRep | |
| RepKind Text = LiftedRep | |
| RepKind ByteString = 'TupleRep '[IntRep, AddrRep, LiftedRep, IntRep, IntRep, LiftedRep] | |
| RepKind CharList = 'TupleRep '[IntRep, LiftedRep] | |
| RepKind Stream = 'TupleRep '[IntRep, LiftedRep] |
offWithShiftRight :: Code (Int -> ts -> ts) -> Code (# Int#, ts #) -> Code Int# -> Code (# Int#, ts #) Source #
type UnpackedLazyByteString = (# Int#, Addr#, ForeignPtrContents, Int#, Int#, ByteString #) Source #
An input type that represents an infinite stream of input characters.
Since: 0.1.0.0
Instances
| PositionOps Stream Source # | |
Defined in Parsley.Internal.Backend.Machine.InputOps | |
| InputPrep Stream Source # | |
| LogHandler Stream Source # | |
| RecBuilder Stream Source # | |
Defined in Parsley.Internal.Backend.Machine.Ops Methods buildIter :: ReturnOps Stream => Ctx s Stream a -> MVar Void -> Machine s Stream '[] One Void a -> (Code (Rep Stream) -> Code (Handler s Stream a)) -> Code (Rep Stream) -> Code (ST s (Maybe a)) Source # buildRec :: forall (rs :: [Type]) s a r. Regs rs -> Ctx s Stream a -> Machine s Stream '[] One r a -> Code (Func rs s Stream a r) Source # | |
| JoinBuilder Stream Source # | |
Defined in Parsley.Internal.Backend.Machine.Ops | |
| ReturnOps Stream Source # | |
| ContOps Stream Source # | |
| HandlerOps Stream Source # | |
| Input Stream Source # | |
Defined in Parsley.Internal.Backend.Machine | |
representationTypes :: [Q Type] Source #