2025/12/01

Newest at the top

2025-12-01 18:18:03 +0100 https://www.reddit.com/r/haskell | Admin: #haskell-ops | Offtopic: #haskell-offtopic | https://downloads.haskell.org | https://play.haskell.org/ | Paste code/errors: https://paste.tomsmeding.com | Logs: https://ircbrowse.tomsmeding.com/browse/lchaskell | Adventofcode Leaderboard: 43100-84040706
2025-12-01 18:16:37 +0100 <ski> tomsmeding : `where' also does attach to `case'-`of' branches
2025-12-01 18:15:47 +0100Googulator76(~Googulato@2a01-036d-0106-4ad8-d9ec-010d-f188-ffcb.pool6.digikabel.hu)
2025-12-01 18:15:44 +0100gmg(~user@user/gehmehgeh) gehmehgeh
2025-12-01 18:15:39 +0100Googulator76(~Googulato@2a01-036d-0106-4ad8-d9ec-010d-f188-ffcb.pool6.digikabel.hu) (Quit: Client closed)
2025-12-01 18:14:42 +0100gmg(~user@user/gehmehgeh) (Remote host closed the connection)
2025-12-01 18:14:15 +0100Square(~Square@user/square) (Ping timeout: 240 seconds)
2025-12-01 18:09:19 +0100tromp(~textual@2001:1c00:3487:1b00:9c00:2cdd:fe3f:e613) (Quit: My iMac has gone to sleep. ZZZzzz…)
2025-12-01 18:08:11 +0100__monty__(~toonn@user/toonn) toonn
2025-12-01 18:00:26 +0100trickard_trickard
2025-12-01 17:56:12 +0100Pixi`Pixi
2025-12-01 17:54:39 +0100karenw(~karenw@user/karenw) karenw
2025-12-01 17:51:55 +0100merijn(~merijn@77.242.116.146) (Ping timeout: 240 seconds)
2025-12-01 17:46:54 +0100chromoblob(~chromoblo@user/chromob1ot1c) chromoblob\0
2025-12-01 17:36:36 +0100spew(~spew@user/spew) (Remote host closed the connection)
2025-12-01 17:35:59 +0100lucabtz(~lucabtz@user/lucabtz) (Remote host closed the connection)
2025-12-01 17:35:39 +0100 <lucabtz> gtg thank you!
2025-12-01 17:35:14 +0100 <tomsmeding> nope, that's not for me :p
2025-12-01 17:34:49 +0100 <fgarcia> oh i should probably link the creator's site http://eastfarthing.com/luculent/
2025-12-01 17:33:07 +0100 <tomsmeding> (just found it by searching for "luculent font" :p)
2025-12-01 17:32:42 +0100 <fgarcia> that is a cool site. finally a specimen i can look at!
2025-12-01 17:31:54 +0100 <fgarcia> tomsmeding: ooo thank you!
2025-12-01 17:31:05 +0100 <tomsmeding> that bold here looks very ugly, but the regular is decent https://online-fonts.com/fonts/luculent
2025-12-01 17:30:32 +0100 <tomsmeding> fgarcia: font exchange time: mononoki
2025-12-01 17:30:30 +0100 <lucabtz> i must be hallucinating
2025-12-01 17:30:24 +0100 <lucabtz> didnt work earlier, im sure i typed [a] -> a -> Maybe a
2025-12-01 17:29:58 +0100 <lucabtz> also for me now
2025-12-01 17:29:56 +0100 <fgarcia> you didn't ask but i recommend the font 'Luculent'. it is lovely. i think people who write haskell will appreciate it
2025-12-01 17:29:55 +0100 <lucabtz> yeah
2025-12-01 17:29:52 +0100 <tomsmeding> works for me (tm)
2025-12-01 17:29:46 +0100 <tomsmeding> https://hoogle.haskell.org/?hoogle=%5Ba%5D+-%3E+Int+-%3E+Maybe+a&scope=set%3Astackage
2025-12-01 17:29:31 +0100 <lucabtz> hoogle didnt find it :(
2025-12-01 17:29:24 +0100 <lucabtz> cool
2025-12-01 17:29:00 +0100 <tomsmeding> lucabtz: ^
2025-12-01 17:28:56 +0100trickard_(~trickard@cpe-85-98-47-163.wireline.com.au)
2025-12-01 17:28:47 +0100 <tomsmeding> TIL
2025-12-01 17:28:45 +0100 <yahb2> (GHC.Internal.List.!?) :: [a] -> Int -> Maybe a ; -- Defined in ‘GHC.Internal.List’ ; infixl 9 GHC.Internal.List.!?
2025-12-01 17:28:45 +0100 <tomsmeding> % :i Data.List.!?
2025-12-01 17:28:42 +0100trickard_(~trickard@cpe-85-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-12-01 17:28:42 +0100 <yahb2> <interactive>:1:1: error: [GHC-76037] Not in scope: ‘!?’
2025-12-01 17:28:42 +0100 <tomsmeding> % :i !?
2025-12-01 17:28:37 +0100 <tomsmeding> oh?
2025-12-01 17:28:17 +0100 <lambdabot> Safe atMay :: [a] -> Int -> Maybe a
2025-12-01 17:28:17 +0100 <lambdabot> GHC.List (!?) :: [a] -> Int -> Maybe a
2025-12-01 17:28:17 +0100 <lambdabot> Data.List (!?) :: [a] -> Int -> Maybe a
2025-12-01 17:28:16 +0100 <Leary> @hoogle [a] -> Int -> Maybe a
2025-12-01 17:28:11 +0100 <merijn> lucabtz: "\l n -> listToMaybe $ drop n l" :p
2025-12-01 17:28:08 +0100 <lucabtz> https://hackage.haskell.org/package/errors-2.3.0/docs/Control-Error-Safe.html#v:atZ this looks more general
2025-12-01 17:27:36 +0100 <tomsmeding> there is atMay here https://hackage.haskell.org/package/safe-0.3.21/docs/Safe.html
2025-12-01 17:27:32 +0100 <lucabtz> i found atZ using hoogle though