Open rubik opened 9 years ago
Thanks for reporting!
I've created a branch, issue-001
that tentatively fixes this. All it does is
include an explicit type signature for chunk
. Just to get you going:
$ git checkout https://github.com/bryant/punkt -b issue-001 punkt-001
$ cd punkt-001
$ ... #juststackthings
This looks like a conflict with the type checker and isn't specific to stack.
GHC (from 7.10.1 onwards) tries to infer a polymorphic type for the second
parameter (str
) of re_split_impl.chunk
despite the constraint from the top
level signature that str
unifies with Text
.
I've requested for clarification on #ghc, but won't be pushing to master until this is cleared up.
Thanks for explaining the issue! I'll happily wait for clarification, I'm learning Haskell myself.
I got the. same error using cabal:
cabal sandbox init
cabal install punkt
...
But how to use the new branch in this setup? Do we have any way to say to cabal to use a branch of the punkt repository?
While installing with Stack I get the following error:
I couldn't try it, but maybe it's just a matter of adding the suggested extension,
FlexibleContexts
.