[Haskell] Re: (small) records proposal for Haskell '06

Joel Reymont joelr1 at gmail.com
Fri Jan 6 06:11:19 EST 2006


How does pattern matching work with HList?

I would like to pass a HList to a function and only match if a  
certain field had a certain value.

On Jan 6, 2006, at 7:14 AM, oleg at pobox.com wrote:

>
> 	*Test> :t accessor
> 	accessor :: (HasField l r v) => r -> l -> v

--
http://wagerlabs.com/







More information about the Haskell mailing list