Safe Haskell | None |
---|---|
Language | Haskell2010 |
Jikka.Common.IOFormat
Documentation
data FormatExpr Source #
Constructors
Var String | |
Plus FormatExpr Integer | |
At FormatExpr String | |
Len FormatExpr |
Instances
Eq FormatExpr Source # | |
Defined in Jikka.Common.IOFormat | |
Ord FormatExpr Source # | |
Defined in Jikka.Common.IOFormat Methods compare :: FormatExpr -> FormatExpr -> Ordering # (<) :: FormatExpr -> FormatExpr -> Bool # (<=) :: FormatExpr -> FormatExpr -> Bool # (>) :: FormatExpr -> FormatExpr -> Bool # (>=) :: FormatExpr -> FormatExpr -> Bool # max :: FormatExpr -> FormatExpr -> FormatExpr # min :: FormatExpr -> FormatExpr -> FormatExpr # | |
Read FormatExpr Source # | |
Defined in Jikka.Common.IOFormat Methods readsPrec :: Int -> ReadS FormatExpr # readList :: ReadS [FormatExpr] # readPrec :: ReadPrec FormatExpr # readListPrec :: ReadPrec [FormatExpr] # | |
Show FormatExpr Source # | |
Defined in Jikka.Common.IOFormat Methods showsPrec :: Int -> FormatExpr -> ShowS # show :: FormatExpr -> String # showList :: [FormatExpr] -> ShowS # |
data FormatTree Source #
Constructors
Exp FormatExpr | |
Newline | |
Seq [FormatTree] | |
Loop String FormatExpr FormatTree |
Instances
Eq FormatTree Source # | |
Defined in Jikka.Common.IOFormat | |
Ord FormatTree Source # | |
Defined in Jikka.Common.IOFormat Methods compare :: FormatTree -> FormatTree -> Ordering # (<) :: FormatTree -> FormatTree -> Bool # (<=) :: FormatTree -> FormatTree -> Bool # (>) :: FormatTree -> FormatTree -> Bool # (>=) :: FormatTree -> FormatTree -> Bool # max :: FormatTree -> FormatTree -> FormatTree # min :: FormatTree -> FormatTree -> FormatTree # | |
Read FormatTree Source # | |
Defined in Jikka.Common.IOFormat Methods readsPrec :: Int -> ReadS FormatTree # readList :: ReadS [FormatTree] # readPrec :: ReadPrec FormatTree # readListPrec :: ReadPrec [FormatTree] # | |
Show FormatTree Source # | |
Defined in Jikka.Common.IOFormat Methods showsPrec :: Int -> FormatTree -> ShowS # show :: FormatTree -> String # showList :: [FormatTree] -> ShowS # |
Constructors
IOFormat | |
Fields
|
mapFormatTreeM :: Monad m => (FormatTree -> m FormatTree) -> FormatTree -> m FormatTree Source #
mapFormatTree :: (FormatTree -> FormatTree) -> FormatTree -> FormatTree Source #
normalizeIOFormat :: IOFormat -> IOFormat Source #
hasNewline :: FormatTree -> Bool Source #
formatFormatExpr :: FormatExpr -> String Source #
formatFormatTree :: FormatTree -> String Source #
formatIOFormat :: IOFormat -> String Source #
packSubscriptedVar :: String -> [String] -> FormatExpr Source #
packSubscriptedVar' :: String -> [String] -> FormatTree Source #
unpackSubscriptedVar :: MonadError Error m => FormatExpr -> m (String, [String]) Source #