hongruiqi / happs

Automatically exported from code.google.com/p/happs
0 stars 0 forks source link

Missing instances for Data.Map + Data.Set #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Prelude> :m HAppS.Server
Prelude HAppS.Server> toMessage (Data.Map.empty :: Data.Map.Map () ())

<interactive>:1:0:
    No instances for (Data.Generics.SYB.WithClass.Basics.Data
                        HAppS.Data.Normalize.NormalizeD (Data.Map.Map () ()),
                      HAppS.Data.Default.Default (Data.Map.Map () ()),
                      Data.Generics.SYB.WithClass.Basics.Data
                        HAppS-Data-0.9.1:HAppS.Data.Xml.Base.XmlD
(Data.Map.Map () ()))
      arising from a use of `toMessage' at <interactive>:1:0-47
    Possible fix:
      add an instance declaration for
      (Data.Generics.SYB.WithClass.Basics.Data
         HAppS.Data.Normalize.NormalizeD (Data.Map.Map () ()),
       HAppS.Data.Default.Default (Data.Map.Map () ()),
       Data.Generics.SYB.WithClass.Basics.Data
         HAppS-Data-0.9.1:HAppS.Data.Xml.Base.XmlD (Data.Map.Map () ()))
    In the expression: toMessage (Data.Map.empty :: Data.Map.Map () ())
    In the definition of `it':
        it = toMessage (Data.Map.empty :: Data.Map.Map () ())

Original issue reported on code.google.com by lem...@gmail.com on 14 Feb 2008 at 10:38