Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear change log #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +0,0 @@
Version 0.1.0.0
===============

#### Extensible Records

* 'RecT' renamed to 'RecF' to avoid colliding with the naming scheme generally reserved for monad transformers. Record constructor names reflect this change.

* The "rec" suffix removed from the functions 'setRecF', 'getRecF', 'getRec', and 'setRec' renamed to prefer the less noise 'setF', getF', 'set', and 'get'.

* The selector constraint (.|) and (#) type synonym replaced with 'Has' constraint for readiblity.
```haskell
-- previously
type HasFooInt ctx = "foo" # Int .| ctx

-- ... is now
type HasFootInt ctx = Has "foo" Int ctx
```

* A new type 'Evident' and class 'HasDict' now give a uniform way for capturing typeclass evidence of extensible records.

* 'Rec' and 'RecT' instance declaration are no longer defined for the base case and inductive case. Instead, extensible record instances pass the responsibility witnessing a dictionary to a 'HasDict' superclass.
```haskell
-- old version
instance Show (Rec '[]) where
show RNil = ...

instance (Show x, Show xs) => Show (Rec (x ': xs)) where
show RNil = ...

-- new version
instance HasDict Show ctx => Show (Rec ctx) where
show Nil = ...
show Con {} = ...
```