Open
Description
This file:
{-# LANGUAGE DataKinds #-}
type PromotedList = '[ 'True ]
is pretty-printed as such:
ghci> parseFile "/tmp/Test.hs" >>= putStrLn . prettyPrint . fromParseResult
{-# LANGUAGE DataKinds #-}
type PromotedList = '['True]
but that’s not legal:
/tmp/Test.hs:3:21: error: parse error on input ‘'’
|
3 | type PromotedList = '['True]
| ^
My suggestion to is to always add a space after '[
in the pretty printer.
Metadata
Metadata
Assignees
Labels
No labels