jdnavarro / tasty-laws

Tasty test runners for checking common laws
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Requiring base < 4.9 #4

Open tarquin-the-brave opened 4 years ago

tarquin-the-brave commented 4 years ago

Hello,

I've found this on hackage and have tried to use it.

I'm learning Haskell at the minute and have just handwritten my first Monad. I was looking to add some tests that it adheres to the Monad, Functor, & Applicative laws.

I rolled back the stack resolver to lts-5.18, to get ghc 7.10.3 with base 4.8.2.0. But my code uses MonadFail from Control.Monad.Fail, which came along in base 4.9.0.0. So I got a bit stuck.

What would you recommend?

tarquin-the-brave commented 4 years ago

I've just tried updating base in smallchack-laws and it's built OK.

I'll try upgrading the other dependencies and see if that works for my testing

tarquin-the-brave commented 4 years ago

I've tried forking this repo and its dependencies and changing the base version to be <5 and things seem to be working.