[Haskell-beginners] print []

Michael Peternell michael.peternell at gmx.at
Wed Aug 14 20:30:01 CEST 2013


There is a way. It's

print "[]"

if the compiler cannot infer the type of an empty list, it's because you wrote a literal empty list [].

Sorry for giving such a practical (non-theoretical) answer ;)

Michael





More information about the Beginners mailing list