bookkeeping 0.3.0.0 → 0.3.1.0
raw patch · 2 files changed
+5/−15 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Business.Bookkeeping: CategoryName :: Text -> Maybe Text -> CategoryName
+ Business.Bookkeeping: [unCategoryName] :: CategoryName -> Text
+ Business.Bookkeeping: [unCategorySubName] :: CategoryName -> Maybe Text
Files
- bookkeeping.cabal +1/−1
- src/Business/Bookkeeping.hs +4/−14
bookkeeping.cabal view
@@ -1,5 +1,5 @@ name: bookkeeping-version: 0.3.0.0+version: 0.3.1.0 synopsis: A module for bookkeeping by double entry. description: A module for bookkeeping by double entry. This module provides a way to do bookkeeping programmatically.
src/Business/Bookkeeping.hs view
@@ -45,7 +45,7 @@ , SubDescription , Amount , Category(..)- , CategoryName+ , CategoryName(..) , CategoryType(..) , DebitCategory(..) , CreditCategory(..)@@ -278,26 +278,16 @@ } deriving (Show, Read, Ord, Eq) data CategoryName = CategoryName- { name :: Text- , sub :: Maybe Text+ { unCategoryName :: Text+ , unCategorySubName :: Maybe Text } deriving (Show, Read, Ord, Eq) --unCategoryName :: CategoryName -> Text-unCategoryName CategoryName {..} = name--unCategorySubName :: CategoryName -> Maybe Text-unCategorySubName CategoryName {..} = sub- categoryName :: Text -> Maybe Text -> CategoryName categoryName = CategoryName instance IsString CategoryName where fromString str =- CategoryName- { name = fromString str- , sub = Nothing- }+ CategoryName (fromString str) Nothing data CategoryType = Assets