You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GHC parses the following file just fine, but using haskell-src-exts' parseFile results in a Parse Error:
{-# LANGUAGE TypeFamilies #-}
typefamilyTestwhere
If you add a line like
Test=()
To the end of this file, parseFile works.
Empty closed type families can be useful when the return type is void, as in
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
importData.Type.EqualityimportData.VoidtypefamilyOneIsn'tZero (p::1:~:0) ::Voidwhere
GHC parses the following file just fine, but using haskell-src-exts'
parseFile
results in a Parse Error:If you add a line like
To the end of this file,
parseFile
works.Empty closed type families can be useful when the return type is void, as in
This is also how I encountered this bug.
This might be related to #358
Version: Both 1.21.0 on hackage and the master branch.
The text was updated successfully, but these errors were encountered: