Last active
December 12, 2015 00:09
-
-
Save akanehara/4681961 to your computer and use it in GitHub Desktop.
すごいHaskell読書会 in 大阪 #4 @Nushio さん問題にたいする答案
This file contains hidden or 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
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 |
This file contains hidden or 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
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