ekmett / pointed

pointed and copointed data
Other
23 stars 9 forks source link

Fix disabling the comonad flag #15

Closed travitch closed 8 years ago

travitch commented 8 years ago

When building with the comonad flag disabled, I was getting the error

src/Data/Copointed.hs:95:0:
     error: missing binary operator before token "("
     #if defined(MIN_VERSION_comonad) && !(MIN_VERSION_comonad(4,3,0))

I'm not sure exactly what the C preprocessor doesn't like about that. It seems fairly reasonable to me. This commit just splits the conditional in a way that seems to work. The split conditional construct is used elsewhere, though, so maybe someone else encountered the same problem in the past.

ekmett commented 8 years ago

Odd.