dmwit / universe

Classes for types where we know all the values
BSD 3-Clause "New" or "Revised" License
37 stars 17 forks source link

Introduce Univ newtype #24

Open phadej opened 8 years ago

phadej commented 8 years ago

This is first step for https://github.com/dmwit/universe/issues/23

I introduce Univ newtype, so instance definitions could be done based on combinators on Univ.

Also I change indentation to use spaces.

Follow-ups would be:

Open questions:

Some answers:

phadej commented 8 years ago

@dmwit, I also commited .travis.yml into repository, with cabal-install-1.24 it's possible to build multi-package projects using "standard tools". .travis.yml has rough edges, new-build isn't yet polished, but having CI would be great!

phadej commented 8 years ago

Note Univ is different implementation of Omega in https://hackage.haskell.org/package/control-monad-omega-0.3.1/docs/Control-Monad-Omega.html

By making similar Applicative instance, we can have similar definitions for Universe and Finite of tuples for example.