[Haskell-cafe] Creating an alias for a function

michael rice nowgate at yahoo.com
Tue Oct 6 22:01:10 EDT 2009


How do I create an alias for a function, like giving CAR the same functionality as HEAD. I know I can do it by creating a definition (see below), but is there a better way, like Scheme's

(define head car)

car ::  [a] -> a
car x = head x

The reason for doing this is to more closely mirror legacy code.

Michael





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091006/792117c5/attachment.html


More information about the Haskell-Cafe mailing list