Skip to content

Commit

Permalink
Give Cons and CCons the same precedence as (:)
Browse files Browse the repository at this point in the history
I believe this is a pretty sane default.
  • Loading branch information
ggreif committed Mar 19, 2015
1 parent a3d816e commit eb0e979
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Data/Generic/Diff.hs
Expand Up @@ -92,6 +92,9 @@ data Nil = CNil
-- your 'Family' instance.
data Cons x xs = CCons x xs

infixr 5 `Cons`
infixr 5 `CCons`

{- |
To use 'diff' and 'patch' on your datatypes, you must create an instance of
Expand Down

0 comments on commit eb0e979

Please sign in to comment.