Safe Haskell | None |
---|---|
Language | Haskell98 |
Contains things needed by BNFC-meta language definitions and by the code generated from those. Typical users don't need to browse this module.
- data HappyStk a :: * -> * = HappyStk a (HappyStk a)
- utf8Encode :: Char -> [Word8]
- data Posn = Pn !Int !Int !Int
- type AlexInput = (Posn, Char, [Word8], String)
- alexGetByte :: AlexInput -> Maybe (Word8, AlexInput)
- ord :: Char -> Int
- listArray :: Ix i => (i, i) -> [e] -> Array i e
- (!) :: Ix i => Array i e -> i -> e
- data Array i e :: * -> * -> *
- printTree :: Print a => a -> String
- doc :: ShowS -> Doc
- concatD :: [Doc] -> Doc
- class Print a where
- prPrec :: Int -> Int -> Doc -> Doc
- newtype PrintPlain = MkPrintPlain String
- parseToQuoter :: (String -> ParseMonad BNFC_QQType) -> QuasiQuoter
- parseToMonQuoter :: (String -> ParseMonad BNFC_QQType) -> QuasiQuoter
- data ParseMonad a
- errq :: (String -> a) -> ParseMonad a -> Q a
- data Q a :: * -> *
- data BNFC_QQType
- appEPAll :: LocType -> String -> [BNFC_QQType] -> BNFC_QQType
- appEPAllL :: LocType -> [BNFC_QQType] -> BNFC_QQType
- fromString :: Literal a => LocType -> a -> BNFC_QQType
- fromLit :: Literal a => LocType -> a -> BNFC_QQType
- fromToken :: Literal a => LocType -> String -> a -> BNFC_QQType
- fromPositionToken :: LocType -> String -> ((Int, Int), String) -> BNFC_QQType
- class Lift t where
- type LocType = (String, String)
- class Literal a where
- class IsChar a where
- printAq :: Print a => a -> BNFC_QQType
- stringAq :: String -> BNFC_QQType
Happy and Alex
utf8Encode :: Char -> [Word8] Source
listArray :: Ix i => (i, i) -> [e] -> Array i e
Construct an array from a pair of bounds and a list of values in index order.
data Array i e :: * -> * -> *
The type of immutable non-strict (boxed) arrays
with indices in i
and elements in e
.
Pretty printing
Quasi quoting
parseToQuoter :: (String -> ParseMonad BNFC_QQType) -> QuasiQuoter Source
parseToMonQuoter :: (String -> ParseMonad BNFC_QQType) -> QuasiQuoter Source
data ParseMonad a Source
Monad ParseMonad | |
Functor ParseMonad | |
Applicative ParseMonad | |
Eq a => Eq (ParseMonad a) | |
Ord a => Ord (ParseMonad a) | |
Read a => Read (ParseMonad a) | |
Show a => Show (ParseMonad a) |
errq :: (String -> a) -> ParseMonad a -> Q a Source
data BNFC_QQType Source
appEPAll :: LocType -> String -> [BNFC_QQType] -> BNFC_QQType Source
appEPAllL :: LocType -> [BNFC_QQType] -> BNFC_QQType Source
fromString :: Literal a => LocType -> a -> BNFC_QQType Source
fromLit :: Literal a => LocType -> a -> BNFC_QQType Source
fromPositionToken :: LocType -> String -> ((Int, Int), String) -> BNFC_QQType Source
class Lift t where
Helper functions for defining Anti-quotation
printAq :: Print a => a -> BNFC_QQType Source
stringAq :: String -> BNFC_QQType Source