Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkachmar/mmmtl
Mistakenly Mocking MTL
https://github.com/jkachmar/mmmtl
Last synced: 13 days ago
JSON representation
Mistakenly Mocking MTL
- Host: GitHub
- URL: https://github.com/jkachmar/mmmtl
- Owner: jkachmar
- License: apache-2.0
- Created: 2018-11-16T19:32:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T19:41:06.000Z (about 6 years ago)
- Last Synced: 2024-11-07T04:49:36.367Z (2 months ago)
- Language: Haskell
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mistakenly Mocking MTL
(Ab)using Typeclasses in Haskell to Model and Mock Effects
## Prerequisites
Install the [Haskell Tool Stack](https://docs.haskellstack.org/en/stable/README/)
From the project root, run:
stack test --fast
...which will download and set up GHC, retrieve package dependencies, build the
project, and run the test suite (with `-O0` optimizations to speed things up).## Tooling
I've included a `Makefile` with this project that captures a lot of my common
development flows within a Haskell project.Since some of these commands are dependent on
[ghcid](https://github.com/ndmitchell/ghcid), so before running any of them
make sure its installed and available on your path with `stack install ghcid`.To build the project quickly:
make build-fast
To enter the project REPL:
make ghci
To run `ghcid`, which will recompile the project on changes and output any type
errors to the console:make ghcid
To run `ghcid` and have it rerun the test suite after the project successfully
type checks:make ghcid-test
To run the test suite on its own:
make test