Safe Haskell | Safe-Inferred |
---|
Synopsis
- executePlan :: [GeneratorAction] -> IO ()
- undoPlan :: [GeneratorAction] -> IO ()
- deleteTextFromFile :: Text -> Text -> IO ()
- addImport :: Text -> Text -> IO ()
- addImport' :: Text -> Text -> Maybe Text
- addAction :: Text -> [Text] -> IO ()
- addAction' :: Text -> [Text] -> Maybe Text
- addMountControllerStatement :: Text -> Text -> IO ()
- addMountControllerStatement' :: Text -> Text -> Maybe Text
- addToDataConstructor :: Text -> Text -> Text -> Maybe Text
- appendLineAfter :: Text -> (Text -> Bool) -> [Text] -> Maybe Text
Documentation
executePlan :: [GeneratorAction] -> IO () Source #
undoPlan :: [GeneratorAction] -> IO () Source #
addToDataConstructor :: Text -> Text -> Text -> Maybe Text Source #
Gets content of a Types.hs, a existent data constructor and a type which should be added to it and returns fileContent with the type in it.
Orphan instances
Controller CodeGenController Source # | |
beforeAction :: IO () Source # action :: CodeGenController -> IO () Source # |