Skip to content

Instantly share code, notes, and snippets.

@akanehara
Last active December 12, 2015 00:09
Show Gist options
  • Save akanehara/4681961 to your computer and use it in GitHub Desktop.
Save akanehara/4681961 to your computer and use it in GitHub Desktop.
すごいHaskell読書会 in 大阪 #4 @Nushio さん問題にたいする答案
import Parupunte
import Prelude hiding ((+), (*))
import qualified Prelude as P
main = do
print $ (2 + 8) * (3 + 7) -- should print 37
print $ (2 P.+ 8) P.* (3 P.+ 7) -- should print 100
module Parupunte ((+), (*)) where
import qualified Prelude
(+) = (Prelude.*)
(*) = (Prelude.+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment