summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-02-02 22:06:06 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2023-02-02 22:06:06 +0100
commit5295d3255e9d2db1d9eaaefc40666989df71b649 (patch)
tree97d5222b8d6ef7eae9062fe909265785ab9e7044
parentaa440ae072ca3dffab6fc2efb96b141de9d944dd (diff)
Enable OverloadedStrings as default extension
-rw-r--r--erebos-tester.cabal2
-rw-r--r--src/Config.hs2
-rw-r--r--src/GDB.hs2
-rw-r--r--src/Main.hs2
-rw-r--r--src/Output.hs2
-rw-r--r--src/Parser.hs1
-rw-r--r--src/Test.hs2
7 files changed, 2 insertions, 11 deletions
diff --git a/erebos-tester.cabal b/erebos-tester.cabal
index 55866fc..2766ee2 100644
--- a/erebos-tester.cabal
+++ b/erebos-tester.cabal
@@ -45,7 +45,6 @@ executable erebos-tester-core
Test
Util
other-extensions: TemplateHaskell
- OverloadedStrings
default-extensions: ExistentialQuantification
FlexibleContexts
FlexibleInstances
@@ -54,6 +53,7 @@ executable erebos-tester-core
ImportQualifiedPost
LambdaCase
MultiParamTypeClasses
+ OverloadedStrings
RankNTypes
ScopedTypeVariables
TupleSections
diff --git a/src/Config.hs b/src/Config.hs
index 2079092..7f5895c 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
-
module Config (
Config(..),
findConfig,
diff --git a/src/GDB.hs b/src/GDB.hs
index ad8ff84..8c23bb9 100644
--- a/src/GDB.hs
+++ b/src/GDB.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
-
module GDB (
GDB, gdbProcess,
gdbStart,
diff --git a/src/Main.hs b/src/Main.hs
index e9e3c4c..81fb04f 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
-
module Main (main) where
import Control.Applicative
diff --git a/src/Output.hs b/src/Output.hs
index 8c913b2..7f9341b 100644
--- a/src/Output.hs
+++ b/src/Output.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
-
module Output (
Output, OutputType(..),
MonadOutput(..),
diff --git a/src/Parser.hs b/src/Parser.hs
index f8c5b0e..b67ce55 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -1,4 +1,3 @@
-{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -Wno-orphans #-}
diff --git a/src/Test.hs b/src/Test.hs
index 11cbca8..b2644b6 100644
--- a/src/Test.hs
+++ b/src/Test.hs
@@ -161,5 +161,5 @@ regexSource (RegexPart src) = src
regexSource (RegexString str) = T.concatMap escapeChar str
where
escapeChar c | isAlphaNum c = T.singleton c
- | c `elem` "`'<>" = T.singleton c
+ | c `elem` ['`', '\'', '<', '>'] = T.singleton c
| otherwise = T.pack ['\\', c]