Skip to content

Commit

Permalink
Fix code to work with the older libs
Browse files Browse the repository at this point in the history
  • Loading branch information
AzimMuradov committed Nov 27, 2023
1 parent 3137a83 commit 716e88e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Unit/Parser/ParserTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

module Unit.Parser.ParserTest (tests) where

import Data.List.NonEmpty (NonEmpty ((:|)))
import qualified Data.List.NonEmpty as NonEmpty
import Data.Text (Text, unpack)
import Parser.Ast
Expand Down Expand Up @@ -62,7 +63,7 @@ testWhitespace = testCase "whitespace" $ do
( DeclFun
"f"
( Fun
(NonEmpty.singleton ("a", Nothing))
(("a", Nothing) :| [])
Nothing
( ExprBinaryOperation
(ArithmeticOp MulOp)
Expand All @@ -83,7 +84,7 @@ testWhitespace = testCase "whitespace" $ do
( DeclFun
"f"
( Fun
(NonEmpty.singleton ("a", Nothing))
(("a", Nothing) :| [])
Nothing
(ExprBinaryOperation (ArithmeticOp MulOp) (ExprIdentifier "a") (ExprIdentifier "a"))
)
Expand Down

0 comments on commit 716e88e

Please sign in to comment.