#86: some record updates reported as ambiguous

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

#86: some record updates reported as ambiguous

GHC-2
#86: some record updates reported as ambiguous
--------------------+-------------------------------------------------------
 Reporter:  ross    |       Owner:  nobody
     Type:  defect  |      Status:  new  
 Priority:  major   |   Milestone:        
Component:  hugs    |     Version:  200609
 Keywords:          |  
--------------------+-------------------------------------------------------
 Given
 {{{
 data Foo = Bar { fld :: IO [String] }

 g _ = id undefined { fld = e }
   where e = return []
 }}}
 Hugs reports that {{{g}}} has the ambiguous type {{{Monad a => b ->
 Foo}}}.

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/86>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs