lykahb / groundhog

This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction
http://hackage.haskell.org/package/groundhog
176 stars 39 forks source link

Pattern match(es) are non-exhaustive when using Data.Text fields #76

Closed pjones closed 6 years ago

pjones commented 6 years ago

I prefer that my code compile without any warnings. If you point me in the right direction I'd be happy to submit a patch for this. Thank you.

warning: [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a lambda abstraction:
        Patterns not matched:
            (Text.Read.Lex.Char _)
            (Text.Read.Lex.String _)
            (Text.Read.Lex.Punc _)
            (Text.Read.Lex.Ident [])
            ...
lykahb commented 6 years ago

Can you submit a small example that produces this error? I haven't seen it before.

pjones commented 6 years ago

Here you go:

https://gist.github.com/pjones/07a80e95d7d1cacdbdc07ff4d40587e5

lykahb commented 6 years ago

Fixed with b4ffe7b298a17446d577817bef5b44201a68ad59