small improvements

This commit is contained in:
Lars Brünjes 2021-05-27 14:55:52 +02:00
parent d8678326a8
commit ba40342f1d
No known key found for this signature in database
GPG key ID: B488B9045DC1A087
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,5 @@
module Week08.QuickCheck where
import Test.QuickCheck
prop_simple :: Bool
prop_simple = 2 + 2 == (4 :: Int)

View file

@ -72,8 +72,8 @@ transition ts s r = case (stateValue s, stateData s, r) of
)
(v, p, AddTokens n) | n > 0 -> Just ( mempty
, State p $
v <>
nft (negate 1) <>
v <>
nft (negate 1) <>
assetClassValue (tsToken ts) n
)
(v, p, BuyTokens n) | n > 0 -> Just ( mempty