Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TypeSpec
- makeElement :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> (Identifier, Val)
- makeElementWithScope :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> Map Identifier Val -> (Identifier, Val)
- makeFunction :: (forall m'. Monad m' => ReaderT Arguments (MP m') Val) -> Val
- makeFunctionWithScope :: (forall m'. Monad m' => ReaderT Arguments (MP m') Val) -> Map Identifier Val -> Val
- makeSymbolMap :: [(Text, Bool, Text)] -> Map Identifier Symbol
- argsToFields :: MonadFail m => [(Identifier, TypeSpec)] -> Arguments -> m (Map Identifier Val)
- nthArg :: (Monad m, FromVal a) => Int -> ReaderT Arguments (MP m) a
- namedArg :: (Monad m, FromVal a) => Identifier -> a -> ReaderT Arguments (MP m) a
- allArgs :: Monad m => ReaderT Arguments (MP m) [Val]
Documentation
makeElement :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> (Identifier, Val) Source #
Create element function with names for positional parameters.
makeElementWithScope :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> Map Identifier Val -> (Identifier, Val) Source #
Create element function with names for positional parameters.
makeFunctionWithScope :: (forall m'. Monad m' => ReaderT Arguments (MP m') Val) -> Map Identifier Val -> Val Source #
makeSymbolMap :: [(Text, Bool, Text)] -> Map Identifier Symbol Source #
argsToFields :: MonadFail m => [(Identifier, TypeSpec)] -> Arguments -> m (Map Identifier Val) Source #