Skip to content

Commit 5184a6e

Browse files
committed
Workaround hlint error parsing rec
1 parent c01401a commit 5184a6e

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/telomare-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
extraPullNames: nix-community
8484
- name: hlint linting
8585
run: |
86-
output=$(nix develop -c hlint . --no-exit-code)
86+
output=$(nix develop -c hlint "--ignore=Parse error" app/Evaluare.hs . --no-exit-code)
8787
if [ "$output" = "No hints" ]; then
8888
echo "Success! No Hlint suggestions."
8989
else

app/Evaluare.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{-# LANGUAGE ScopedTypeVariables #-}
1+
module Main where
22

33
import Control.Comonad.Cofree (Cofree ((:<)))
44
import qualified Control.Exception as Exception
55
import Control.Monad
66
import Control.Monad.Fix (MonadFix)
7-
import Data.Bifunctor (bimap, first)
7+
import Data.Bifunctor (first)
88
import Data.Either (fromLeft)
99
import Data.Map (Map)
1010
import qualified Data.Map as Map
@@ -14,14 +14,13 @@ import qualified Data.Text.Zipper as TZ
1414
import qualified Graphics.Vty as V
1515
import PrettyPrint (PrettierIExpr (..))
1616
import Reflex
17-
import Reflex.Network
1817
import Reflex.Vty
1918
import System.Environment (getArgs)
2019
import qualified System.IO.Strict as Strict
2120
import qualified Telomare as Tel
2221
import Telomare (IExpr (..), IExprF (..))
2322
import qualified Telomare.Eval as TE
24-
import Telomare.Parser (AnnotatedUPT (..), parsePrelude)
23+
import Telomare.Parser (AnnotatedUPT, parsePrelude)
2524
import Text.Read (readMaybe)
2625

2726
type VtyExample t m =

hooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo "Finished formatting"
1515
# Linting
1616
# TODO: The --refactor flag does not work even after adding `apply-refactor` to the devShell
1717
echo "Linting:"
18-
output=$(nix develop -c hlint . --no-exit-code)
18+
output=$(nix develop -c hlint "--ignore=Parse error" app/Evaluare.hs . --no-exit-code)
1919
if [ "$output" = "No hints" ]; then
2020
echo "Success! No Hlint suggestions."
2121
else

telomare.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ executable telomare-evaluare
122122
free,
123123
strict
124124
default-language: Haskell2010
125-
-- other-modules: Example.CPU
126125
default-extensions:
127126
BangPatterns
128127
ConstraintKinds

0 commit comments

Comments
 (0)