Skip to content

Commit

Permalink
Yes
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljharvey committed Oct 30, 2023
1 parent e9cfd0e commit a6a4ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions smol-core/src/Smol/Core/Parser/Module.hs
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ parseInstance =
myString "="
(,,) constraints mainConstraint <$> expressionParser
in withLocation
( \ann (constraints, head, expr) ->
( \ann (constraints, head', expr) ->
ModuleInstance
( ModuleInstanceC
{ miAnn = ann,
miConstraints = constraints,
miHead = head,
miHead = head',
miExpr = expr
}
)
Expand Down
1 change: 0 additions & 1 deletion smol-core/test/static/Functor.smol
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ test "fmap works with Either" =
let inc = (\a -> a + 1 : Int -> Int);
unwrapEither (fmap inc (Right 1)) == unwrapEither (Right (2 : Int))

instance Show String = \a -> "dog"

0 comments on commit a6a4ddb

Please sign in to comment.