cdornan / fmt

New formatting library
BSD 3-Clause "New" or "Revised" License
56 stars 6 forks source link

||++| and |++|| are confused #29

Closed cdornan closed 3 years ago

cdornan commented 4 years ago

This works,

data Baz = Baz deriving (Show)

fmtLn $ "foo"+||Baz||+""+|(2::Int)|+"bar"

but this does not:

data Baz = Baz deriving (Show)

fmtLn $ "foo"+||Baz||++|(2::Int)|+"bar"

failing with a type error complaining about Baz not being buildable.

cdornan commented 3 years ago

fixed by e0e1e98dfe35486d6f1ea1b2389bd4af4d93914c