inferno-core-0.1.0.0: A statically-typed functional scripting language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Inferno.Parse

Documentation

data Comment pos #

Constructors

LineComment pos Text pos 
BlockComment pos Text pos 

Instances

Instances details
Foldable Comment 
Instance details

Defined in Inferno.Types.Syntax

Methods

fold :: Monoid m => Comment m -> m #

foldMap :: Monoid m => (a -> m) -> Comment a -> m #

foldMap' :: Monoid m => (a -> m) -> Comment a -> m #

foldr :: (a -> b -> b) -> b -> Comment a -> b #

foldr' :: (a -> b -> b) -> b -> Comment a -> b #

foldl :: (b -> a -> b) -> b -> Comment a -> b #

foldl' :: (b -> a -> b) -> b -> Comment a -> b #

foldr1 :: (a -> a -> a) -> Comment a -> a #

foldl1 :: (a -> a -> a) -> Comment a -> a #

toList :: Comment a -> [a] #

null :: Comment a -> Bool #

length :: Comment a -> Int #

elem :: Eq a => a -> Comment a -> Bool #

maximum :: Ord a => Comment a -> a #

minimum :: Ord a => Comment a -> a #

sum :: Num a => Comment a -> a #

product :: Num a => Comment a -> a #

Functor Comment 
Instance details

Defined in Inferno.Types.Syntax

Methods

fmap :: (a -> b) -> Comment a -> Comment b #

(<$) :: a -> Comment b -> Comment a #

BlockUtils Comment 
Instance details

Defined in Inferno.Types.Syntax

FromJSON pos => FromJSON (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

ToJSON pos => ToJSON (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Data pos => Data (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Comment pos -> c (Comment pos) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Comment pos) #

toConstr :: Comment pos -> Constr #

dataTypeOf :: Comment pos -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Comment pos)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Comment pos)) #

gmapT :: (forall b. Data b => b -> b) -> Comment pos -> Comment pos #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Comment pos -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Comment pos -> r #

gmapQ :: (forall d. Data d => d -> u) -> Comment pos -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Comment pos -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Comment pos -> m (Comment pos) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Comment pos -> m (Comment pos) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Comment pos -> m (Comment pos) #

Generic (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Associated Types

type Rep (Comment pos) :: Type -> Type #

Methods

from :: Comment pos -> Rep (Comment pos) x #

to :: Rep (Comment pos) x -> Comment pos #

Show pos => Show (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Methods

showsPrec :: Int -> Comment pos -> ShowS #

show :: Comment pos -> String #

showList :: [Comment pos] -> ShowS #

Eq pos => Eq (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Methods

(==) :: Comment pos -> Comment pos -> Bool #

(/=) :: Comment pos -> Comment pos -> Bool #

Ord pos => Ord (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

Methods

compare :: Comment pos -> Comment pos -> Ordering #

(<) :: Comment pos -> Comment pos -> Bool #

(<=) :: Comment pos -> Comment pos -> Bool #

(>) :: Comment pos -> Comment pos -> Bool #

(>=) :: Comment pos -> Comment pos -> Bool #

max :: Comment pos -> Comment pos -> Comment pos #

min :: Comment pos -> Comment pos -> Comment pos #

VCHashUpdate a => VCHashUpdate (Comment a) 
Instance details

Defined in Inferno.Types.VersionControl

Pretty (Comment a) 
Instance details

Defined in Inferno.Types.Syntax

Methods

pretty :: Comment a -> Doc ann #

prettyList :: [Comment a] -> Doc ann #

type Rep (Comment pos) 
Instance details

Defined in Inferno.Types.Syntax

data TopLevelDefn def Source #

Instances

Instances details
Data def => Data (TopLevelDefn def) Source # 
Instance details

Defined in Inferno.Parse

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TopLevelDefn def -> c (TopLevelDefn def) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (TopLevelDefn def) #

toConstr :: TopLevelDefn def -> Constr #

dataTypeOf :: TopLevelDefn def -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (TopLevelDefn def)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (TopLevelDefn def)) #

gmapT :: (forall b. Data b => b -> b) -> TopLevelDefn def -> TopLevelDefn def #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TopLevelDefn def -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TopLevelDefn def -> r #

gmapQ :: (forall d. Data d => d -> u) -> TopLevelDefn def -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TopLevelDefn def -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TopLevelDefn def -> m (TopLevelDefn def) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TopLevelDefn def -> m (TopLevelDefn def) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TopLevelDefn def -> m (TopLevelDefn def) #

Show def => Show (TopLevelDefn def) Source # 
Instance details

Defined in Inferno.Parse

Eq def => Eq (TopLevelDefn def) Source # 
Instance details

Defined in Inferno.Parse

Methods

(==) :: TopLevelDefn def -> TopLevelDefn def -> Bool #

(/=) :: TopLevelDefn def -> TopLevelDefn def -> Bool #

data QQDefinition Source #

Instances

Instances details
Data QQDefinition Source # 
Instance details

Defined in Inferno.Parse

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> QQDefinition -> c QQDefinition #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c QQDefinition #

toConstr :: QQDefinition -> Constr #

dataTypeOf :: QQDefinition -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c QQDefinition) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c QQDefinition) #

gmapT :: (forall b. Data b => b -> b) -> QQDefinition -> QQDefinition #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> QQDefinition -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> QQDefinition -> r #

gmapQ :: (forall d. Data d => d -> u) -> QQDefinition -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> QQDefinition -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> QQDefinition -> m QQDefinition #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> QQDefinition -> m QQDefinition #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> QQDefinition -> m QQDefinition #

topLevel :: SomeParser r a -> SomeParser r a Source #

expr :: Parser (Expr () SourcePos) Source #

prettyError Source #

Arguments

:: ShowErrorComponent e 
=> ParseError Text e

Parse error to render

-> String 

rws :: [Text] #