|
Re: Deriving Typeable instances: msg#00059lang.haskell.glasgow.bugs
Hi and thanks for your discussion. Our programs have (at the moment) nothing to do with debugging or assertions. We are implementing a Curry-to-Haskell-Compiler. Curry is a functional-logic language, extending Haskell with needed narrowing (efficient (lazy) search for free, logic variables). In the generated Haskell program we need a mapping for bindings of logic variables. The only way we were able to built this mapping is a map from variable identifiers to dynamically typed values. Since Curry provides tuples up to arity 15, we have to provide an instance of the class Typeable to store bindings in the mapping of logic variables. Hence, for the predefined data structures it would be nice to have instances up to 15. However, in Curry programmers are also allowed to define own type constructors with an arity larger than 15 (or seven), as in Haskell. To translate such Curry programs it would be nice to have derivable instances for Typeable for type constructors of arbitrary arity, like ghc-6.2 provided it. For us it is nicer to derive Typeable instance for all data types rather than defining these instances by hand. For the moment, it would be nice if you could provide a restriction to 15 type variables. Otherwise we will define these instances for tuples up to 15 by hand and think about generating instances for arbitrary types later. Thanks and regards, Frank Ralf Lammel schrieb: (I agree with the two Simons; just want to throw in a few more
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Deriving Typeable instances, Ralf Lammel |
|---|---|
| Next by Date: | [ ghc-Bugs-635718 ] Bad space behaviour with huge input file, SourceForge.net |
| Previous by Thread: | RE: Deriving Typeable instances, Ralf Lammel |
| Next by Thread: | [ ghc-Bugs-1251699 ] ghc-6.4.1.20050801: panic!, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |