Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parseQuasiQuoterFile :: Text -> Either String PersistModelFile
- parseModelsFile :: Text -> Either String PersistModelFile
- parsePersistQuasiQuoters :: Parser PersistModelFile
- parseEntities :: Parser PersistModelFile
- parseEntity :: Parser Entity
- parseEntitySqlTable :: Parser Text
- maybeOption :: Parser a -> Parser (Maybe a)
- lowerCase :: Parser Char
- upperCase :: Parser Char
- underline :: Parser Char
- exclamationMark :: Parser Char
- tilde :: Parser Char
- spaceNoNewLine :: Parser Char
- haskellFunctionName :: Parser Text
- haskellTypeName :: Parser Text
- haskellTypeNameWithoutPrefix :: Parser Text
- singleLineComment :: Parser Comment
- collectWhiteSpace :: Parser WhiteSpace
- parseEntityName :: Parser Text
- parseEntityField :: Parser EntityField
- deleteItems :: Eq a => [a] -> [a] -> [a]
- parseMigrationOnly :: Parser MigrationOnlyAndSafeToRemoveOption
- parseSafeToRemove :: Parser MigrationOnlyAndSafeToRemoveOption
- getMigrationOnlyAndSafeToRemoveOption :: MigrationOnlyAndSafeToRemoveOption -> Parser MigrationOnlyAndSafeToRemoveOption
- parseMigrationOnlyAndSafeToRemove :: [MigrationOnlyAndSafeToRemoveOption] -> Parser [MigrationOnlyAndSafeToRemoveOption]
- getFieldDefault :: [EntityFieldLastItem] -> Maybe Text
- getFieldSqlRow :: [EntityFieldLastItem] -> Maybe Text
- getFieldSqlType :: [EntityFieldLastItem] -> Maybe Text
- getFieldMaxLen :: [EntityFieldLastItem] -> Maybe Int
- getEntityFieldLastItemParser :: EntityFieldLastItem -> Parser EntityFieldLastItem
- parseFieldDefault :: Parser EntityFieldLastItem
- parseFieldSqlRow :: Parser EntityFieldLastItem
- parseFieldSqlType :: Parser EntityFieldLastItem
- parseFieldMaxLen :: Parser EntityFieldLastItem
- parseEntityFieldLastItem :: [EntityFieldLastItem] -> Parser [EntityFieldLastItem]
- parseEntityFieldName :: Parser Text
- parseStrictness :: Parser Strictness
- parseEntityFieldType :: Parser EntityFieldType
- parseMaybe :: Parser ()
- parseEntityUnique :: Parser EntityUnique
- parseEntityUniqueName :: Parser Text
- parseEntityUniqueEntityFieldName :: Parser [Text]
- parseEntityDerive :: Parser EntityDerive
- parseEntityPrimary :: Parser EntityPrimary
- parseEntityForeign :: Parser EntityForeign
- parseForeignKeyType :: Parser ()
Documentation
parsePersistQuasiQuoters :: Parser PersistModelFile Source #
Parse Persist Models that are in quasi-quoters. The source could be a haskell file.
parseEntities :: Parser PersistModelFile Source #
Parse a Persist Model file.
parseEntity :: Parser Entity Source #
Parse a single Persist Entity
maybeOption :: Parser a -> Parser (Maybe a) Source #
Wrap a Parser in Maybe
because it might fail. Useful for making choices.
exclamationMark :: Parser Char Source #
Parse strict marker "!" for haskellTypeName.
haskellFunctionName :: Parser Text Source #
Parse a Haskell function name. It starts with underscore or lowercase letter then is followed by a combination of underscores, single quotes, letters and digits. E.g., "get", "_get", "get_1", etc.
haskellTypeName :: Parser Text Source #
Parse a Haskell type name. It starts with an uppercase letter then is followed by a combination of underscores, single quotes, letters and digits. E.g., Person, Address, PhoneNumber, etc.
singleLineComment :: Parser Comment Source #
Parse a comment that starts with "--".
deleteItems :: Eq a => [a] -> [a] -> [a] Source #
getMigrationOnlyAndSafeToRemoveOption :: MigrationOnlyAndSafeToRemoveOption -> Parser MigrationOnlyAndSafeToRemoveOption Source #
parseMigrationOnlyAndSafeToRemove :: [MigrationOnlyAndSafeToRemoveOption] -> Parser [MigrationOnlyAndSafeToRemoveOption] Source #
getFieldDefault :: [EntityFieldLastItem] -> Maybe Text Source #
getFieldSqlRow :: [EntityFieldLastItem] -> Maybe Text Source #
getFieldSqlType :: [EntityFieldLastItem] -> Maybe Text Source #
getFieldMaxLen :: [EntityFieldLastItem] -> Maybe Int Source #
parseMaybe :: Parser () Source #
parseForeignKeyType :: Parser () Source #