Open bitemyapp opened 7 years ago
I know it's partial, but the type error is baffling. Contrast:
Prelude> import qualified Prelude
Prelude> Prelude.last $ T.split (\c -> c == '.') "filename.pdf"
"pdf"
Just off the top of my head, is it because the Text
doesn't have a guaranteed minimum length, and without that last
could be partial, that's why it's not compiling?
@MaxGabriel I think it's because the []
of [Text]
doesn't have MinLen.
Try using a more recent version of mono-traversable, it should give a much clearer error message. On mobile, I can't check myself right now.
On Fri, Sep 16, 2016, 12:32 AM Chris Allen notifications@github.com wrote:
@MaxGabriel https://github.com/MaxGabriel I think it's because the [] of [Text] doesn't have MinLen.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/snoyberg/mono-traversable/issues/108#issuecomment-247461528, or mute the thread https://github.com/notifications/unsubscribe-auth/AADBB0QzRPY_WawzMBJaHamdrHgxHaqFks5qqblSgaJpZM4J-VVK .
This does appear to be fixed.
What gives?