| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Xeno.Types
Description
Shared types.
Synopsis
- data XenoException
- = XenoStringIndexProblem {
- stringIndex :: Int
- inputString :: ByteString
- | XenoParseError {
- inputIndex :: Int
- message :: ByteString
- | XenoExpectRootNode
- = XenoStringIndexProblem {
- newtype ByteStringZeroTerminated = BSZT ByteString
Documentation
data XenoException Source #
Constructors
| XenoStringIndexProblem | |
Fields
| |
| XenoParseError | |
Fields
| |
| XenoExpectRootNode | |
Instances
| NFData XenoException Source # | |||||
Defined in Xeno.Types Methods rnf :: XenoException -> () | |||||
| Data XenoException Source # | |||||
Defined in Xeno.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> XenoException -> c XenoException gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c XenoException toConstr :: XenoException -> Constr dataTypeOf :: XenoException -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c XenoException) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c XenoException) gmapT :: (forall b. Data b => b -> b) -> XenoException -> XenoException gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> XenoException -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> XenoException -> r gmapQ :: (forall d. Data d => d -> u) -> XenoException -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> XenoException -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> XenoException -> m XenoException gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> XenoException -> m XenoException gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> XenoException -> m XenoException | |||||
| Exception XenoException Source # | |||||
Defined in Xeno.Types Methods toException :: XenoException -> SomeException fromException :: SomeException -> Maybe XenoException displayException :: XenoException -> String backtraceDesired :: XenoException -> Bool | |||||
| Generic XenoException Source # | |||||
Defined in Xeno.Types Associated Types
| |||||
| Show XenoException Source # | |||||
Defined in Xeno.Types Methods showsPrec :: Int -> XenoException -> ShowS show :: XenoException -> String showList :: [XenoException] -> ShowS | |||||
| MonadFail (Either XenoException) Source # | |||||
Defined in Xeno.Types Methods fail :: String -> Either XenoException a | |||||
| type Rep XenoException Source # | |||||
Defined in Xeno.Types type Rep XenoException = D1 ('MetaData "XenoException" "Xeno.Types" "xeno-0.6-7GdJnJME7WZDXfr7cijztB" 'False) (C1 ('MetaCons "XenoStringIndexProblem" 'PrefixI 'True) (S1 ('MetaSel ('Just "stringIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "inputString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: (C1 ('MetaCons "XenoParseError" 'PrefixI 'True) (S1 ('MetaSel ('Just "inputIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: C1 ('MetaCons "XenoExpectRootNode" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
newtype ByteStringZeroTerminated Source #
ByteString wich guaranted have 'NUL' at the end
Constructors
| BSZT ByteString |
Instances
| NFData ByteStringZeroTerminated Source # | |||||
Defined in Xeno.Types Methods rnf :: ByteStringZeroTerminated -> () | |||||
| Generic ByteStringZeroTerminated Source # | |||||
Defined in Xeno.Types Associated Types
Methods from :: ByteStringZeroTerminated -> Rep ByteStringZeroTerminated x to :: Rep ByteStringZeroTerminated x -> ByteStringZeroTerminated | |||||
| StringLike ByteStringZeroTerminated Source # | |||||
Defined in Xeno.SAX Methods s_index' :: ByteStringZeroTerminated -> Int -> Word8 Source # elemIndexFrom' :: Word8 -> ByteStringZeroTerminated -> Int -> Maybe Int Source # drop' :: Int -> ByteStringZeroTerminated -> ByteStringZeroTerminated Source # substring' :: ByteStringZeroTerminated -> Int -> Int -> ByteString Source # toBS :: ByteStringZeroTerminated -> ByteString Source # | |||||
| type Rep ByteStringZeroTerminated Source # | |||||
Defined in Xeno.Types type Rep ByteStringZeroTerminated = D1 ('MetaData "ByteStringZeroTerminated" "Xeno.Types" "xeno-0.6-7GdJnJME7WZDXfr7cijztB" 'True) (C1 ('MetaCons "BSZT" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||