[Hugs-users] Old bug hanging around?
Dave at haskell.org
Dave at haskell.org
Wed Mar 7 17:54:55 EST 2007
I got an error on the following short program
(which ghc compiles and runs).
===========
-- Some unix-like tools written in simple, clean Haskell
import Data.List
import Data.Char
import System.IO
import Text.Printf
-- First, two helpers
io f = interact (unlines . f . lines)
showln = (++ "\n") . show
-- Compute a simple cksum of a file
main = interact $ showln . foldl' k 5381
where k h c = h * 33 + ord c
========
Hugs> :load chksum.hs
ERROR "chksum.hs":15 - Unresolved top-level overloading
*** Binding : showln
*** Outstanding context : Show b
Text.Printf>
This error has been around for a while. See
http://www.arcknowledge.com/gmane.comp.lang.haskell.hugs.bugs/2006-11/msg00010.html
Is there a fix for this problem?
Thanks,
Dave Feustel
More information about the Hugs-Users
mailing list