Open yellowbean opened 1 year ago
the code base should be more rely on the Haskell type system.
there is duplicate code like :
combine -> CashflowFrame -> CashflowFrame -> CashflowFrame
which is just a <> in semigroup..
<>
We should refactor these code and mark these type as instance of Monoid/Semigroup
Monoid/Semigroup
https://typeclasses.com/monoid
A -> A -> A
(A-> A) -> A === A-> (A -> A )
mempty -> A mconcat :: [A] -> A
row <> row -> row cashflow frame <> cashflow frame -> cashflow frame
the code base should be more rely on the Haskell type system.
there is duplicate code like :
which is just a
<>
in semigroup..We should refactor these code and mark these type as instance of
Monoid/Semigroup
https://typeclasses.com/monoid
Semigroup
A -> A -> A
(A-> A) -> A === A-> (A -> A )
Moniod
mempty -> A mconcat :: [A] -> A