Skip to content

Instantly share code, notes, and snippets.

@mjeff7
mjeff7 / Main.hs
Created Mar 23, 2018
fizzbuzz in Haskell
View Main.hs
module Main where
import Data.Monoid ((<>))
import Data.Maybe (fromMaybe)
import Control.Applicative (liftA2)
main :: IO ()
main = print $ take 100 $ fizzBuzzIntString <$> [1..]
fizzBuzzIntString :: Int -> String