ghc 9.6.6 -XPatternSynonyms accepts
newtype WindowsString = WindowsString{ getWindowsString :: String }
pattern WS :: String -> WindowsString
pattern WS { unWS } <- WindowsString unWS where
WS a = WindowsString a
{-# COMPLETE WS #-}
main = return ()
mhs 0.14.17.0 rejects
mhs: uncaught exception: error: "bidirectional-pattern-synonym.hs": line 4, col 12:
found: {
expected: LIdent ( = <- , :: ∷
based on real code in os-string package
ghc 9.6.6 -XPatternSynonyms accepts
mhs 0.14.17.0 rejects
based on real code in os-string package