2025/02/12

Newest at the top

2025-02-12 22:31:02 +0100 <tomsmeding> well it's still correct, but now non-sarcastically
2025-02-12 22:30:54 +0100 <tomsmeding> oh you added "un"
2025-02-12 22:30:41 +0100tomsmedingnods vigorously
2025-02-12 22:30:34 +0100 <tomsmeding> very
2025-02-12 22:30:29 +0100 <EvanR> seems to be wildly unpopular
2025-02-12 22:30:19 +0100 <EvanR> justsomeguy, ghci has a debugger
2025-02-12 22:30:19 +0100tri(~tri@ool-44c70bcb.dyn.optonline.net)
2025-02-12 22:30:10 +0100 <merijn> monochrom: only the ones I don't explicit remove from you behind your back :p
2025-02-12 22:29:41 +0100 <monochrom> I thought flags went into the hash and can trigger rebuild.
2025-02-12 22:29:03 +0100 <merijn> still open, sadly, because it was never enough of a problem to invent a solution
2025-02-12 22:28:46 +0100tanky(sid630849@user/tanky) tanky
2025-02-12 22:28:46 +0100tanky(sid630849@id-630849.tinside.irccloud.com) (Changing host)
2025-02-12 22:28:22 +0100 <tomsmeding> merijn: <3
2025-02-12 22:28:11 +0100 <tomsmeding> justsomeguy: you'll get two different results for the outer and the inner fmap
2025-02-12 22:28:04 +0100 <merijn> tomsmeding: https://github.com/haskell/cabal/issues/5300
2025-02-12 22:28:02 +0100 <merijn> tomsmeding: I'm ahead of you by 7 years :)
2025-02-12 22:27:59 +0100 <tomsmeding> justsomeguy: write down the type of `fmap`; write down the types of the arguments it gets in your expression; match the two and see what the `f` in fmap's type should be
2025-02-12 22:27:46 +0100 <EvanR> I reversed the arguments, nevermind me
2025-02-12 22:27:26 +0100tanky(sid630849@id-630849.tinside.irccloud.com)
2025-02-12 22:26:50 +0100 <EvanR> (fmap (fmap sum) Just) [1,2,3] => (Just . fmap sum) [1,2,3]
2025-02-12 22:26:48 +0100yegorc(~yegorc@user/yegorc) (Leaving)
2025-02-12 22:26:47 +0100 <tomsmeding> merijn: I do wonder if just dropping those flags is the right design though; sure, perhaps the user didn't intend to recompile the world, but perhaps they did!
2025-02-12 22:26:45 +0100 <monochrom> More than that, you need a tool that tells you what "fmap" resolves to.
2025-02-12 22:26:43 +0100biberu(~biberu@user/biberu) biberu
2025-02-12 22:26:38 +0100 <merijn> tomsmeding: Yes, because cabal-install just invokes the Setup.hs parser
2025-02-12 22:26:32 +0100 <justsomeguy> Maybe a haskell debugger?
2025-02-12 22:26:12 +0100 <justsomeguy> Is there some tool I can put this into and see the evaluation process step-by-step?
2025-02-12 22:25:21 +0100 <euouae> I misreead it, so (->) on JUst
2025-02-12 22:25:14 +0100tabaqui1(~root@87.200.129.102) (Ping timeout: 252 seconds)
2025-02-12 22:25:09 +0100 <EvanR> f x y z = ((f x) y) z
2025-02-12 22:25:00 +0100 <euouae> Okay
2025-02-12 22:24:49 +0100 <EvanR> euouae, no
2025-02-12 22:24:40 +0100 <tomsmeding> justsomeguy: but it's `fmap f Just`, not `fmap f (Just x)`. ;)
2025-02-12 22:24:36 +0100 <euouae> Isn't it fmap (fmap sum) (Just [1,2,3])?
2025-02-12 22:23:58 +0100 <justsomeguy> I thought the reduction process would go like this (fmap (fmap sum) Just) [1,2,3] ==> fmap (Just (fmap sum [1,2,3])) .... I got this from substituting in (fmap sum) to the definition fmap f (Just x) = Just (f x).
2025-02-12 22:23:45 +0100 <EvanR> justsomeguy, does fmap sum (Just [1,2,3]) make sense
2025-02-12 22:22:57 +0100 <tomsmeding> but `cabal build` doesn't accept it
2025-02-12 22:22:38 +0100 <tomsmeding> merijn: --repl-options is also a thing on Setup.hs, I see
2025-02-12 22:21:55 +0100 <tomsmeding> :3
2025-02-12 22:21:20 +0100 <merijn> welp, my session if figuring out where the arguments are processed has ended, due to cat blocking my laptop xD
2025-02-12 22:21:19 +0100 <EvanR> inner fmap is the Maybe functor
2025-02-12 22:20:51 +0100 <EvanR> er
2025-02-12 22:20:36 +0100 <EvanR> two different instances
2025-02-12 22:20:29 +0100 <EvanR> outer fmap is function functor
2025-02-12 22:20:22 +0100 <EvanR> the inner fmap is using the list functor
2025-02-12 22:20:05 +0100 <merijn> Because I manually audited a "known-safe to toss" subset of flags and anything not there is kept
2025-02-12 22:20:03 +0100 <justsomeguy> tomsmeding: Why does the outer fmap get rewritten to (.) instead of the inner fmap?
2025-02-12 22:19:22 +0100 <merijn> tomsmeding: yeah, GHC only
2025-02-12 22:19:13 +0100 <merijn> tomsmeding: Maybe? I dunno :p
2025-02-12 22:19:08 +0100 <tomsmeding> for "ghc" specifically, right?