From d71c6f8c5955e8a9861e3f3957b293a369aac954 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 3 May 2024 22:34:10 -0400 Subject: Switch to nixpkgs-23.11, ghc 9.6.3 This brings a bunch of improvements. I got rid of some custom packages, I can now build exllama without using a non-default cuda version. Oh yeah and I get to use GHC 9.6.2 now, a huge upgrade from 9.4. Unfortunately I also updated ormolu and some unrelated formatting changed, but that's life I guess. --- Biz/Log.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Biz/Log.hs') diff --git a/Biz/Log.hs b/Biz/Log.hs index 8dba657..5c82c28 100644 --- a/Biz/Log.hs +++ b/Biz/Log.hs @@ -102,7 +102,7 @@ warn = msg Warn fail = msg Fail -- | Like 'Debug.trace' but follows the patterns in this module -mark :: Show a => Text -> a -> a +mark :: (Show a) => Text -> a -> a mark label val = unsafePerformIO <| do msg Mark [label, tshow val] @@ -114,11 +114,11 @@ mark label val = -- @ -- mark label val = val ~& label -- @ -(~&) :: Show a => a -> Text -> a +(~&) :: (Show a) => a -> Text -> a val ~& label = mark label val -- | Conditional mark. -(~?) :: Show a => a -> (a -> Bool) -> Text -> a +(~?) :: (Show a) => a -> (a -> Bool) -> Text -> a (~?) val test label = if test val then mark label val else val wai :: Wai.Middleware -- cgit v1.2.3