Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
LineComment pos Text pos | |
BlockComment pos Text pos |
Instances
Foldable Comment | |
Defined in Inferno.Types.Syntax 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 # elem :: Eq a => a -> Comment a -> Bool # maximum :: Ord a => Comment a -> a # minimum :: Ord a => Comment a -> a # | |
Functor Comment | |
BlockUtils Comment | |
Defined in Inferno.Types.Syntax blockPosition :: Comment SourcePos -> (SourcePos, SourcePos) # removeComments :: Comment pos -> Comment pos # hasLeadingComment :: Comment pos -> Bool # hasTrailingComment :: Comment pos -> Bool # renameModule :: Scoped ModuleName -> Comment pos -> Comment pos # | |
FromJSON pos => FromJSON (Comment pos) | |
ToJSON pos => ToJSON (Comment pos) | |
Defined in Inferno.Types.Syntax | |
Data pos => Data (Comment pos) | |
Defined in Inferno.Types.Syntax 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) | |
Show pos => Show (Comment pos) | |
Eq pos => Eq (Comment pos) | |
Ord pos => Ord (Comment pos) | |
Defined in Inferno.Types.Syntax | |
VCHashUpdate a => VCHashUpdate (Comment a) | |
Pretty (Comment a) | |
Defined in Inferno.Types.Syntax | |
type Rep (Comment pos) | |
Defined in Inferno.Types.Syntax type Rep (Comment pos) = D1 ('MetaData "Comment" "Inferno.Types.Syntax" "inferno-types-0.1.0.0-EKMmIlZ8z5b3mVEUhFR81D" 'False) (C1 ('MetaCons "LineComment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 pos) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 pos))) :+: C1 ('MetaCons "BlockComment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 pos) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 pos)))) |
data TopLevelDefn def Source #
Instances
Data def => Data (TopLevelDefn def) Source # | |
Defined in Inferno.Parse 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 # | |
Defined in Inferno.Parse showsPrec :: Int -> TopLevelDefn def -> ShowS # show :: TopLevelDefn def -> String # showList :: [TopLevelDefn def] -> ShowS # | |
Eq def => Eq (TopLevelDefn def) Source # | |
Defined in Inferno.Parse (==) :: TopLevelDefn def -> TopLevelDefn def -> Bool # (/=) :: TopLevelDefn def -> TopLevelDefn def -> Bool # |
data QQDefinition Source #
Instances
Data QQDefinition Source # | |
Defined in Inferno.Parse 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 # |
data InfernoParsingError Source #
Instances
Show InfernoParsingError Source # | |
Defined in Inferno.Parse showsPrec :: Int -> InfernoParsingError -> ShowS # show :: InfernoParsingError -> String # showList :: [InfernoParsingError] -> ShowS # | |
Eq InfernoParsingError Source # | |
Defined in Inferno.Parse (==) :: InfernoParsingError -> InfernoParsingError -> Bool # (/=) :: InfernoParsingError -> InfernoParsingError -> Bool # | |
Ord InfernoParsingError Source # | |
Defined in Inferno.Parse compare :: InfernoParsingError -> InfernoParsingError -> Ordering # (<) :: InfernoParsingError -> InfernoParsingError -> Bool # (<=) :: InfernoParsingError -> InfernoParsingError -> Bool # (>) :: InfernoParsingError -> InfernoParsingError -> Bool # (>=) :: InfernoParsingError -> InfernoParsingError -> Bool # max :: InfernoParsingError -> InfernoParsingError -> InfernoParsingError # min :: InfernoParsingError -> InfernoParsingError -> InfernoParsingError # | |
ShowErrorComponent InfernoParsingError Source # | |
Defined in Inferno.Parse |
parseExpr :: OpsTable -> Map ModuleName OpsTable -> Text -> Either (NonEmpty (ParseError Text InfernoParsingError, SourcePos)) (Expr () SourcePos, [Comment SourcePos]) Source #
parseType :: Text -> Either (NonEmpty (ParseError Text InfernoParsingError, SourcePos)) InfernoType Source #
modulesParser :: Parser [(ModuleName, OpsTable, [TopLevelDefn (Maybe TCScheme, QQDefinition)])] Source #
:: ShowErrorComponent e | |
=> ParseError Text e | Parse error to render |
-> String |