https://github.com/rufflewind/calico-hs
Yet another prelude library
https://github.com/rufflewind/calico-hs
Last synced: about 1 year ago
JSON representation
Yet another prelude library
- Host: GitHub
- URL: https://github.com/rufflewind/calico-hs
- Owner: Rufflewind
- License: mit
- Created: 2015-03-06T19:08:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T04:46:18.000Z (about 9 years ago)
- Last Synced: 2025-01-21T09:12:05.378Z (over 1 year ago)
- Language: Haskell
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
calico-hs
=========
**Quick links:** [documentation][doc]
An experimental prelude library.
Using this prelude
------------------
There are two ways to do this.
### As a library: suitable for executables
You can build this as an ordinary library using Cabal:
git clone https://github.com/Rufflewind/calico-hs
cd calico-hs
cabal install
Afterwards, all you have to do is to
import Calico
and you'll get everything *and* the kitchen sink.
This approach is suitable for writing executables and rapid
development/prototyping. It will bring in a lot of dependencies, however.
### By embedding: suitable for libraries
Assuming you're already inside your project directory, run
git submodule add https://github.com/Rufflewind/calico-hs calico
and then append `calico` to `hs-source-dirs` in the `.cabal` file. Then
create your customized prelude module that imports the modules that you care
about. Be sure to include the relevant modules in `other-modules` of the
`.cabal` file as well.
This approach is suitable for writing libraries as it gives you more
flexibility in the choice of dependencies.
[doc]: https://rufflewind.com/calico-hs