[Haskell-cafe] Monad transformer responsibilities
Stephan Friedrichs
deduktionstheorem at web.de
Fri Jun 5 06:40:02 EDT 2009
Hi,
it's alomost the same problem when you're writing a library with
optional quickcheck test cases: Where to put the Arbitrary instances?
- You can't put them into quickcheck
- You don't want to put them in the library (because of the quickcheck
dependency)
- So you have to declare them near the test cases and they're orphan
instances
The entire project doesn't issue a single warning when compiling with
-Wall *except* two orphan instances when building the test cases...
//Stephan
--
Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.
- Dieter Nuhr
More information about the Haskell-Cafe
mailing list