From 8bb8ecbddc5cab3b2b7f36789cc04453ee88f1e0 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 18 Apr 2020 12:52:32 +0200 Subject: [PATCH] Reduce haskell_term by one character Since GHC 7.10 (base 4.8), Applicative became a member of Prelude, which means we can access the wonderfully short function `pure` to shave off one character (while also not printing anything). --- haskell_term.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell_term.hs b/haskell_term.hs index 3b182fc..0934eb8 100644 --- a/haskell_term.hs +++ b/haskell_term.hs @@ -1 +1 @@ -main=print 0 +main=pure()