While it's not possible to use emoji as regular names in Haskell
{-# START_FILE Main.hs #-}
๐ฉ = "emoji"
main = print emoji
They can be used as infix function names
{-# START_FILE Main.hs #-}
(๐) = (+)
main = print $ 3 ๐ 4
{-# START_FILE Main.hs #-}
infixr 5 ๐
(๐) = (:)
(๐) = []
main = putStrLn $ 'e' ๐ 'm' ๐ 'o' ๐ 'j' ๐ 'i' ๐ (๐)
Can you guess what the โ and ๐ฉ functions do?
{-# START_FILE Main.hs #-}
import Data.Time.Clock.POSIX
getTime = round `fmap` getPOSIXTime
(๐ฉ) :: Functor f => (a -> b) -> f a -> f b
(๐ฉ) = fmap
(โ) = (* 2)
-- show
main = do
print $ (โ) 100
print $ (โ) ๐ฉ [1..5]
print $ (โ) ๐ฉ Just 10
time <- getTime
print time
punTime <- (โ) ๐ฉ getTime
print punTime
-- /show