Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.PureScript.Bridge.Printer
Documentation
Constructors
PSModule | |
Fields
|
type PSModule = Module PureScript #
data ImportLine #
Constructors
ImportLine | |
Fields
|
Instances
type ImportLines = Map Text ImportLine #
printModule :: FilePath -> PSModule -> IO () #
sumTypesToNeededPackages :: [SumType lang] -> Set Text #
sumTypeToNeededPackages :: SumType lang -> Set Text #
moduleToText :: Module PureScript -> Text #
_lensImports :: [ImportLine] #
importLineToText :: ImportLine -> Text #
sumTypeToText :: SumType PureScript -> Text #
sumTypeToTypeDecls :: SumType PureScript -> Text #
sumTypeToPrisms :: SumType PureScript -> Text #
sumTypeToLenses :: SumType PureScript -> Text #
constructorToText :: Int -> DataConstructor PureScript -> Text #
typeNameAndForall :: SumType PureScript -> (Text, Text) #
fromEntries :: (RecordEntry a -> Text) -> [RecordEntry a] -> Text #
mkFnArgs :: [RecordEntry PureScript] -> Text #
mkTypeSig :: [RecordEntry PureScript] -> Text #
constructorToPrism :: Bool -> SumType PureScript -> DataConstructor PureScript -> Text #
recordEntryToLens :: SumType PureScript -> Text -> RecordEntry PureScript -> Text #
typeInfoToText :: Bool -> PSType -> Text #
sumTypesToModules :: Modules -> [SumType PureScript] -> Modules #
sumTypeToModule :: SumType PureScript -> Modules -> Modules #
typesToImportLines :: ImportLines -> Set PSType -> ImportLines #
typeToImportLines :: PSType -> ImportLines -> ImportLines #
importsFromList :: [ImportLine] -> Map Text ImportLine #
mergeImportLines :: ImportLines -> ImportLines -> ImportLines #