malcolmwallace / cpphs

The C pre-processor, implemented in Haskell.
2 stars 0 forks source link

head on empty list error #13

Closed ndmitchell closed 7 years ago

ndmitchell commented 7 years ago

Given Sample.hs containing:

#ifndef
#endif

Running cpphs Sample.hs gives:

cpphs: Prelude.head: empty list

Originally reported by @RyanGlScott in https://github.com/ndmitchell/hlint/issues/355 with cpphs-1.20.5.

malcolmwallace commented 7 years ago

Fixed in cpphs-1.20.6