Unable to import type operators with their constructors #170

Closed
opened 2018-08-09 12:31:40 +02:00 by ChickenProp · 0 comments
ChickenProp commented 2018-08-09 12:31:40 +02:00 (Migrated from github.com)

This line formats fine, with no changes:

import           Database.PostgreSQL.Simple     ( (:.) )

but this line gives "brittany pretty printer returned syntactically invalid result":

import           Database.PostgreSQL.Simple     ( (:.)(..) )

with --output-on-errors enabled, it seems that it's trying to format like

import           Database.PostgreSQL.Simple     ( :.(..) )

as if :. was a normal type name, not a type operator. I've tried enabling -XTypeOperators in the config, but that didn't seem to have any effect.

This line formats fine, with no changes: ```haskell import Database.PostgreSQL.Simple ( (:.) ) ``` but this line gives "brittany pretty printer returned syntactically invalid result": ```haskell import Database.PostgreSQL.Simple ( (:.)(..) ) ``` with --output-on-errors enabled, it seems that it's trying to format like ```haskell import Database.PostgreSQL.Simple ( :.(..) ) ``` as if `:.` was a normal type name, not a type operator. I've tried enabling -XTypeOperators in the config, but that didn't seem to have any effect.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#170
There is no content yet.