celtchar-0.1.3.0: A tool to build a novel
Celtchar.Novel.Structure
class HasDependencies c where Source #
Minimal complete definition
getDeps
Methods
getDeps :: c -> [FilePath] Source #
Instances
getDeps :: Novel -> [FilePath] Source #
getDeps :: Manuscript -> [FilePath] Source #
getDeps :: Part -> [FilePath] Source #
getDeps :: Chapter -> [FilePath] Source #
getDeps :: Document -> [FilePath] Source #
data Language Source #
Constructors
showsPrec :: Int -> Language -> ShowS #
show :: Language -> String #
showList :: [Language] -> ShowS #
Associated Types
type Rep Language :: * -> * #
from :: Language -> Rep Language x #
to :: Rep Language x -> Language #
parseJSON :: Value -> Parser Language #
parseJSONList :: Value -> Parser [Language] #
newtype Document Source #
showsPrec :: Int -> Document -> ShowS #
show :: Document -> String #
showList :: [Document] -> ShowS #
type Rep Document :: * -> * #
from :: Document -> Rep Document x #
to :: Rep Document x -> Document #
parseJSON :: Value -> Parser Document #
parseJSONList :: Value -> Parser [Document] #
novelify :: Document -> Builder () Source #
data Chapter Source #
Fields
showsPrec :: Int -> Chapter -> ShowS #
show :: Chapter -> String #
showList :: [Chapter] -> ShowS #
type Rep Chapter :: * -> * #
from :: Chapter -> Rep Chapter x #
to :: Rep Chapter x -> Chapter #
parseJSON :: Value -> Parser Chapter #
parseJSONList :: Value -> Parser [Chapter] #
novelify :: Chapter -> Builder () Source #
data Part Source #
showsPrec :: Int -> Part -> ShowS #
show :: Part -> String #
showList :: [Part] -> ShowS #
type Rep Part :: * -> * #
from :: Part -> Rep Part x #
to :: Rep Part x -> Part #
parseJSON :: Value -> Parser Part #
parseJSONList :: Value -> Parser [Part] #
novelify :: Part -> Builder () Source #
newtype Manuscript Source #
showsPrec :: Int -> Manuscript -> ShowS #
show :: Manuscript -> String #
showList :: [Manuscript] -> ShowS #
type Rep Manuscript :: * -> * #
from :: Manuscript -> Rep Manuscript x #
to :: Rep Manuscript x -> Manuscript #
parseJSON :: Value -> Parser Manuscript #
parseJSONList :: Value -> Parser [Manuscript] #
novelify :: Manuscript -> Builder () Source #
data Novel Source #
showsPrec :: Int -> Novel -> ShowS #
show :: Novel -> String #
showList :: [Novel] -> ShowS #
type Rep Novel :: * -> * #
from :: Novel -> Rep Novel x #
to :: Rep Novel x -> Novel #
parseJSON :: Value -> Parser Novel #
parseJSONList :: Value -> Parser [Novel] #
novelify :: Novel -> Builder () Source #
getNovelStructure :: FilePath -> IO (Either String Novel) Source #