-
-
Save sighingnow/9996851945408e8a960f81bf262260a1 to your computer and use it in GitHub Desktop.
Haskell's $ operator for types.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeOperators #-} | |
module T where | |
-- | Infix application. | |
-- | |
-- @ | |
-- f :: IO $ Maybe Int | |
-- = | |
-- f :: IO (Maybe Int) | |
-- @ | |
type f $ a = f a | |
infix 2 $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment