haskell-hvr / HsYAML

YAML 1.2 implementation in pure Haskell
https://hackage.haskell.org/package/HsYAML
GNU General Public License v2.0
55 stars 17 forks source link

Support GHC 8.10 #41

Closed sjakobi closed 4 years ago

sjakobi commented 4 years ago

Note that the improved pattern match checker produces a warning:

src/Data/YAML/Event.hs:412:9: warning: [-Woverlapping-patterns]
    Pattern match is redundant
    In an equation for ‘go'’: go' _ _ _ xs = ...
    |
412 |         go' _ _ _ xs | False = error (show xs)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hvr commented 4 years ago

Note that the improved pattern match checker produces a warning:

hah... I guess I need to find different tricks to leave behind debugging code which the optimizer wouldn't warn about and yet detect as dead-code during optimization :-P

hvr commented 4 years ago

Revised as per https://hackage.haskell.org/package/HsYAML-0.2.1.0/revisions/

hvr commented 4 years ago

Thanks!