Skip to content

Commit

Permalink
Make Embed an instance of Ord
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Aug 1, 2015
1 parent 9760c2e commit 0474960
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 0.2

* Incorporating some of the extras/oversights from
[clash-lib Unbound.Generics.LocallyNameless.Extra](https://github.com/clash-lang/clash-compiler/blob/master/clash-lib/src/Unbound/Generics/LocallyNameless/Extra.hs)

* Make `Embed` an instance of `Ord`
* `NFData` instances (see below)

* Re-implement `freshen'` and `gfreshen` using a free monad to give
GHC a chance to inline it all away. This changes the type of
`gfreshen`. Major version bump.
Expand Down
2 changes: 1 addition & 1 deletion src/Unbound/Generics/LocallyNameless/Embed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import Unbound.Generics.LocallyNameless.Internal.Iso (iso)
-- (You may also use the functions 'embed' and 'unembed', which
-- additionally can construct or destruct any number of enclosing
-- 'Shift's at the same time.)
newtype Embed t = Embed t deriving (Eq, Generic)
newtype Embed t = Embed t deriving (Eq, Ord, Generic)

class IsEmbed e where
-- | The term type embedded in the embedding 'e'
Expand Down

0 comments on commit 0474960

Please sign in to comment.