cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

pPrint appears to go into an infinite loop #28

Closed cdepillabout closed 6 years ago

cdepillabout commented 6 years ago

Trying to pretty print the following causes pPrint to appear to go into an infinite loop:

Effect (Identity (Step (1 :> Effect (Identity (Step (2 :> Effect (Identity (Step (1 :> Effect (Identity (Step (3 :> Effect (Identity (Step (2 :> Effect (Identity (Step (1 :> Effect (Identity (Step (4 :> Effect (Identity (Step (3 :> Effect (Identity (Step (2 :> Effect (Identity (Step (1 :> Effect (Identity (Return ()))))))))))))))))))))))))))))))))
cdepillabout commented 6 years ago

Actually, this could just be the function taking too long to run, as shown in #30?

cdepillabout commented 6 years ago

Fixed by #32.