Skip to content

Commit

Permalink
hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Sep 19, 2024
1 parent ea8a035 commit d0f8281
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bench/Bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ main = do
]
, bgroup "entropy"
[ bench "hs" $ nf hsEntropy xs
, bench "jit" $ nfIO $ (pure $ entropyFp xsPtr)
, bench "jit" $ nfIO (pure $ entropyFp xsPtr)
]
, bgroup "k-l"
[ bench "hs" $ nf (kl xs) ys
Expand Down Expand Up @@ -153,7 +153,7 @@ main = do
bgroup "elliptic"
[ bench "A" $ nfIO (withForeignPtr p0 $ \p0Ptr -> withForeignPtr p1 $ \p1Ptr -> pure $ ᴀFp p0Ptr p1Ptr) ]
, env xorEnv $ \ ~(wh, wo, bh) ->
bgroup "xor" $
bgroup "xor"
[ bench "train" $ nfIO $
withForeignPtr wh $ \whPtr ->
withForeignPtr wo $ \woPtr ->
Expand Down
2 changes: 1 addition & 1 deletion run/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ loop = do
Nothing -> pure ()

del :: String -> Repl AlexPosn ()
del s = lift $ modify (mE (filter (\((Nm n _ _),_) -> n /= st))) where st=T.pack s
del s = lift $ modify (mE (filter (\(Nm n _ _, _) -> n /= st))) where st=T.pack s

listCtx :: Repl AlexPosn ()
listCtx = do {bs <- lg ee; liftIO $ putDoc (prettyLines (pretty.fst<$>bs)<>hardline)}
Expand Down
2 changes: 1 addition & 1 deletion src/Ty/M.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ foldMapAlternative :: (Traversable t, Alternative f) => (a -> f b) -> t a -> f b
foldMapAlternative f xs = asum (f <$> xs)

desugar :: a
desugar = error ("Internal error. Should have been desugared.")
desugar = error "Internal error. Should have been desugared."

0 comments on commit d0f8281

Please sign in to comment.