AJChapman / formatting

Format strings type-safely with combinators
BSD 3-Clause "New" or "Revised" License
164 stars 39 forks source link

Lost constraint for `int`? #40

Closed qrilka closed 6 years ago

qrilka commented 6 years ago

It appears that in 55c7adc3a2b3919c7f50fc1338f9b33ef2a2a342 Integral constraint was removed from int so now the following is possible:

λ> sformat ("an int: "%int%"!") "No way!"
"an int: No way!!"

@chrisdone was there some motivation behind that removal that I don't see?

chrisdone commented 6 years ago

That was removed at GHC's suggestion of redundant constraints. This was a mistake. I'll add it back at some point.