issues
search
statebox
/
cql
CQL: Categorical Query Language implementation in Haskell
GNU Affero General Public License v3.0
162
stars
14
forks
source link
Refactor
#82
Open
epost
opened
5 years ago
epost
commented
5 years ago
[ ] Document; add doc comments, etc.
[ ] Document
Collage
[ ]
lookup2
[ ] Use
Foldable
, etc. instead of
List
[ ] eliminate
Prelude.
-prefixed function applications, e.g.
Prelude.map
(also consider
Set.map
)
[ ] align and indent stuff properly
[ ] Look at existentials, constraint kinds, ...
[ ] ADT instead of Stringly typed errors
[ ] Factor out common code
[ ] eliminate
fromJust
s if possible
[ ] ...
wisnesky
commented
5 years ago
use folds instead of recursion
the common idiom for (x in X) { updateInPlace(A,x), updateInPlace(B,x),...} gets 'shredded' into a collection of maps over X in Haskell in many places. These places should probably use the state monad.
Collage
lookup2
Foldable
, etc. instead ofList
Prelude.
-prefixed function applications, e.g.Prelude.map
(also considerSet.map
)fromJust
s if possible