Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And if you want to go really crazy

    type List = []

    List a -> List b


    type Function = (->)
    type On f g a b = f (g a) (g b)
    {-# LANGUAGE TypeOperators #-}

    (Function `On` List) a b
<_<




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: