Solkattu.ExtractKorvais
Description
Extract Korvai definitions into a list in a generated module.
main :: IO () Source #
data Type Source #
Constructors
Defined in Solkattu.ExtractKorvais
Methods
showsPrec :: Int -> Type -> ShowS #
show :: Type -> String #
showList :: [Type] -> ShowS #
(==) :: Type -> Type -> Bool #
(/=) :: Type -> Type -> Bool #
extract Source #
Arguments
(lineno, variableName)
Extract "something :: Korvai" lines.
generate :: FilePath -> Map FilePath [(Type, (Int, Text))] -> Either ExtractHs.Error ([ExtractHs.Warning], Text) Source #
scoreDef :: FilePath -> (Int, Text) -> Type -> Text Source #
template :: Text Source #