Skip to content

Commit

Permalink
Updated to use cabal-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ktvoelker committed Sep 18, 2012
1 parent 207f2ce commit b3017bc
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dist
sessions.vim
.*.sw*
/cabal-dev
/dist
File renamed without changes.
6 changes: 0 additions & 6 deletions Setup.lhs

This file was deleted.

19 changes: 19 additions & 0 deletions doc/todo
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

TODO
====

Improve the Containers module
* Fields are just lenses; the functions in this module shouldn't directly access
anything, they should just create lenses
* One type of lens should access a value in a map given a particular key, with a
default value to insert and access if the value is not found
* This is just a specialization of an accessor that provides a Maybe value

Support records which have two variants with a common field by only generating
a single field descriptor.

Support underscore-based naming as well as camel case. Provide wrappers around
a single underlying function which takes all the relevant parameters.

Write tests.

8 changes: 7 additions & 1 deletion src/Data/Record/StateFields.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ idReaderField f =
{ askFieldM = asks $ getField f
}

infixl 9 //
infixl 9 //, >/, </

(>/) :: a -> IdField a b -> b
(>/) = flip getField

(</) :: a -> (IdField a b, b) -> a
(</) rec (f, val) = putField f val rec

-- | The class of field descriptors which can be chained into paths.
class FieldPath f g h | f g -> h where
Expand Down
77 changes: 0 additions & 77 deletions table

This file was deleted.

12 changes: 0 additions & 12 deletions todo

This file was deleted.

0 comments on commit b3017bc

Please sign in to comment.