Proposal: Simplify/Generalize Data.Dynamic
John Wiegley
johnw at newartisans.com
Mon Aug 25 19:58:53 UTC 2014
>>>>> Edward Kmett <ekmett at gmail.com> writes:
> But, if we change the definition of Data.Dynamic to
> data Dynamic where
> Dynamic :: Typeable a => a -> Dynamic
> from its current magic implementation in terms of unsafeCoerce and a
> manually held typeRep, then
> fromDynamic becomes a trivial application of Data.Typeable.cast and dynApply
> becomes easier,
+1
John
More information about the Libraries
mailing list