File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- {-# LANGUAGE ScopedTypeVariables #-}
1+ module Main where
22
33import Control.Comonad.Cofree (Cofree ((:<) ))
44import qualified Control.Exception as Exception
55import Control.Monad
66import Control.Monad.Fix (MonadFix )
7- import Data.Bifunctor (bimap , first )
7+ import Data.Bifunctor (first )
88import Data.Either (fromLeft )
99import Data.Map (Map )
1010import qualified Data.Map as Map
@@ -14,14 +14,13 @@ import qualified Data.Text.Zipper as TZ
1414import qualified Graphics.Vty as V
1515import PrettyPrint (PrettierIExpr (.. ))
1616import Reflex
17- import Reflex.Network
1817import Reflex.Vty
1918import System.Environment (getArgs )
2019import qualified System.IO.Strict as Strict
2120import qualified Telomare as Tel
2221import Telomare (IExpr (.. ), IExprF (.. ))
2322import qualified Telomare.Eval as TE
24- import Telomare.Parser (AnnotatedUPT ( .. ) , parsePrelude )
23+ import Telomare.Parser (AnnotatedUPT , parsePrelude )
2524import Text.Read (readMaybe )
2625
2726type VtyExample t m =
Original file line number Diff line number Diff 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
1717echo " 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)
1919if [ " $output " = " No hints" ]; then
2020 echo " Success! No Hlint suggestions."
2121else
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments