mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
cleanup
This commit is contained in:
parent
2039296ee1
commit
0542e2f2f6
3
Parse.hs
3
Parse.hs
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
module Parse
|
module Parse
|
||||||
where
|
where
|
||||||
|
import qualified Data.Map as Map
|
||||||
import Text.ParserCombinators.Parsec
|
import Text.ParserCombinators.Parsec
|
||||||
import Text.ParserCombinators.Parsec.Language
|
import Text.ParserCombinators.Parsec.Language
|
||||||
import qualified Text.ParserCombinators.Parsec.Token as P
|
import qualified Text.ParserCombinators.Parsec.Token as P
|
||||||
@ -144,7 +145,7 @@ ledger = do
|
|||||||
--
|
--
|
||||||
entries <- (many ledgerentry) <?> "entry"
|
entries <- (many ledgerentry) <?> "entry"
|
||||||
eof
|
eof
|
||||||
return (Ledger modifier_entries periodic_entries entries)
|
return $ Ledger modifier_entries periodic_entries entries
|
||||||
|
|
||||||
ledgernondatalines :: Parser [String]
|
ledgernondatalines :: Parser [String]
|
||||||
ledgernondatalines = many (ledgerdirective <|> ledgercomment <|> do {whiteSpace1; return []})
|
ledgernondatalines = many (ledgerdirective <|> ledgercomment <|> do {whiteSpace1; return []})
|
||||||
|
Loading…
Reference in New Issue
Block a user