From 119c8e9df975d16154c85363c9e93a40fe38231e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 9 Aug 2020 10:17:14 +0100 Subject: [PATCH] Add common language extensions to .ghci I'd like to see if I can avoid using `cabal` and `stack` and build and deploy this application using `nix-shell` and `nix-build` only. Let's see how that goes. --- website/sandbox/learnpianochords/src/server/.ghci | 5 +++++ website/sandbox/learnpianochords/src/server/Fixtures.hs | 2 -- website/sandbox/learnpianochords/src/server/GoogleSignIn.hs | 1 - website/sandbox/learnpianochords/src/server/Main.hs | 3 --- website/sandbox/learnpianochords/src/server/Spec.hs | 1 - website/sandbox/learnpianochords/src/server/Types.hs | 2 -- 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/website/sandbox/learnpianochords/src/server/.ghci b/website/sandbox/learnpianochords/src/server/.ghci index efc88e630..151d070ca 100644 --- a/website/sandbox/learnpianochords/src/server/.ghci +++ b/website/sandbox/learnpianochords/src/server/.ghci @@ -1,2 +1,7 @@ :set prompt "> " :set -Wall + +:set -XOverloadedStrings +:set -XNoImplicitPrelude +:set -XRecordWildCards +:set -XTypeApplications diff --git a/website/sandbox/learnpianochords/src/server/Fixtures.hs b/website/sandbox/learnpianochords/src/server/Fixtures.hs index 169e29632..974df97ce 100644 --- a/website/sandbox/learnpianochords/src/server/Fixtures.hs +++ b/website/sandbox/learnpianochords/src/server/Fixtures.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE RecordWildCards #-} -------------------------------------------------------------------------------- module Fixtures where -------------------------------------------------------------------------------- diff --git a/website/sandbox/learnpianochords/src/server/GoogleSignIn.hs b/website/sandbox/learnpianochords/src/server/GoogleSignIn.hs index ab315a187..0f48a9a1d 100644 --- a/website/sandbox/learnpianochords/src/server/GoogleSignIn.hs +++ b/website/sandbox/learnpianochords/src/server/GoogleSignIn.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------------------- module GoogleSignIn where -------------------------------------------------------------------------------- diff --git a/website/sandbox/learnpianochords/src/server/Main.hs b/website/sandbox/learnpianochords/src/server/Main.hs index 67f9fd3ac..ae3562d48 100644 --- a/website/sandbox/learnpianochords/src/server/Main.hs +++ b/website/sandbox/learnpianochords/src/server/Main.hs @@ -1,6 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE TypeApplications #-} -{-# LANGUAGE RecordWildCards #-} -------------------------------------------------------------------------------- module Main where -------------------------------------------------------------------------------- diff --git a/website/sandbox/learnpianochords/src/server/Spec.hs b/website/sandbox/learnpianochords/src/server/Spec.hs index d9d2e5d1a..6246dc9ef 100644 --- a/website/sandbox/learnpianochords/src/server/Spec.hs +++ b/website/sandbox/learnpianochords/src/server/Spec.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------------------- module Spec where -------------------------------------------------------------------------------- diff --git a/website/sandbox/learnpianochords/src/server/Types.hs b/website/sandbox/learnpianochords/src/server/Types.hs index 61e448e1a..5b8ca036d 100644 --- a/website/sandbox/learnpianochords/src/server/Types.hs +++ b/website/sandbox/learnpianochords/src/server/Types.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE RecordWildCards #-} -{-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------------------- module Types where --------------------------------------------------------------------------------