Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-21 19:30:07 <davean> monochrom: yah, that I've used once or twice recently
2021-04-21 19:30:16 <davean> infinisil: you might be looking in the wrong place?
2021-04-21 19:30:25 <sclv> oh graphmod looks like its in good shape: https://matrix.hackage.haskell.org/#/package/graphmod
2021-04-21 19:30:33 <infinisil> I mean I kinda know why, but it would be nice to have something visual
2021-04-21 19:30:46 rj joins (~x@gateway/tor-sasl/rj)
2021-04-21 19:30:57 × nicholasbulka quits (~nicholasb@2601:900:4301:da0:bdc9:711a:32b8:207e) (Remote host closed the connection)
2021-04-21 19:31:04 <infinisil> davean: No I already know the problem, the file transitively depends on other frequently updated files
2021-04-21 19:32:12 vchlup joins (~vchlup@nat.brnet.cz)
2021-04-21 19:32:19 sdrodge_ joins (~sdrodge@unaffiliated/sdrodge)
2021-04-21 19:32:27 <monochrom> Yeah maybe try graphmod. (But I haven't.)
2021-04-21 19:32:41 × sdrodge quits (~sdrodge@unaffiliated/sdrodge) (Ping timeout: 240 seconds)
2021-04-21 19:32:50 <infinisil> Oh nice
2021-04-21 19:33:20 <monochrom> Does it just output the text file that graphviz wants to read?
2021-04-21 19:33:31 <infinisil> I'd expect so
2021-04-21 19:33:48 infinisil is installing graphmod
2021-04-21 19:34:35 DavidEichmann joins (~david@147.136.46.217.dyn.plus.net)
2021-04-21 19:34:47 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-04-21 19:35:18 infinisil installs graphviz
2021-04-21 19:35:57 <infinisil> (or rather, adding it to the shell.nix)
2021-04-21 19:36:54 infinisil installs xdotool
2021-04-21 19:37:21 × wonko7 quits (~wonko7@62.115.229.50) (Ping timeout: 260 seconds)
2021-04-21 19:38:48 <davean> infinisil: why do you want xdotool for *this* task?
2021-04-21 19:39:10 <infinisil> Reading through https://github.com/yav/graphmod/wiki
2021-04-21 19:39:20 <infinisil> First example command is `find Data -name '*.hs' | xargs graphmod -q | xdot -`
2021-04-21 19:39:31 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 245 seconds)
2021-04-21 19:39:32 <infinisil> And I checked where the `xdot` binary comes from, apparently xdotool
2021-04-21 19:39:47 <davean> Uh
2021-04-21 19:39:49 <infinisil> But, as I just discovered, maybe not so after all, because I don't have xdot after installing xdotool
2021-04-21 19:39:56 davean looks at infinisil askew
2021-04-21 19:40:04 <davean> Yah I think you're off your rocker
2021-04-21 19:40:05 <pjb> Yes, me too…
2021-04-21 19:40:11 <geekosaur> that looks like a failed grep to me :)
2021-04-21 19:40:21 <infinisil> Huh?
2021-04-21 19:40:23 <davean> xdotool is a tool for simulating X events
2021-04-21 19:40:23 infinisil is confused
2021-04-21 19:40:29 <geekosaur> same prefix
2021-04-21 19:40:30 <davean> not a graph display tool like xdot is
2021-04-21 19:40:32 <pjb> infinisil: xdot has nothing in common with xdotool!
2021-04-21 19:40:33 <infinisil> Oh!
2021-04-21 19:41:05 <davean> Your addition does not pass a sanity check
2021-04-21 19:41:13 <infinisil> Ugh yeah, I see my mistake. I searched for the xdot binary, but not for `xdot$`, meaning I also got the result for xdotool
2021-04-21 19:41:15 <geekosaur> and apt-cache search shows them right next to each other
2021-04-21 19:41:51 sveit parts (~sveit@2001:19f0:ac01:247:5400:ff:fe5c:689f) ("ERC Version 5.3 (IRC client for Emacs)")
2021-04-21 19:42:00 <davean> infinisil: now, if you want to fake a mouse click in X11, you want xdotool
2021-04-21 19:42:21 infinisil installs xdot, this time
2021-04-21 19:43:55 <monochrom> I always search for, e.g., ^graphviz$
2021-04-21 19:44:46 <infinisil> There are nix setups to get command-not-found to work, but I don't have that configured. When a command cannot be found that would tell you where the binary can be found
2021-04-21 19:45:07 <monochrom> and there is enough reason to do so because otherwise you would be spammed by the horde of eg "golang-python-graphviz-dev-lib-profiling" already.
2021-04-21 19:45:42 <infinisil> I am confused by that sentence
2021-04-21 19:46:34 × unyu quits (~pyon@unaffiliated/pyon) (Quit: brb)
2021-04-21 19:46:56 unyu joins (~pyon@unaffiliated/pyon)
2021-04-21 19:47:23 <monochrom> If you ask aptitude or apt-cache search etc to look for "graphviz", you don't get graphviz itself. Never. You get all those things like python-graphviz-binding, golang-graphviz-lib, everything peripheral except the centre you actually need.
2021-04-21 19:47:42 <infinisil> Ohh I see
2021-04-21 19:47:50 <monochrom> And there a a million of those peripheral tag-along free loaders.
2021-04-21 19:47:56 <infinisil> Yeah the binary reverse search is nice
2021-04-21 19:48:39 <infinisil> It works!
2021-04-21 19:48:40 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-04-21 19:48:44 <monochrom> :)
2021-04-21 19:49:25 <infinisil> So, in conclusion, install graphmod, graphvis and xdot, then run find src -name '*.hs' | xargs graphmod -q | xdot -
2021-04-21 19:50:10 <monochrom> Hrm, graphmod parses source code directly?
2021-04-21 19:50:35 <monochrom> err nevermind, nothing says it can't call ghc with the same filename arguments.
2021-04-21 19:50:47 <monochrom> Nice either way.
2021-04-21 19:50:49 <infinisil> https://hackage.haskell.org/package/graphmod
2021-04-21 19:50:56 <infinisil> Seems to use the haskell-lexer package
2021-04-21 19:51:14 <infinisil> So, seemingly not even though ghc!
2021-04-21 19:51:24 geekosaur wonders if it groks addDependentFile
2021-04-21 19:51:27 <monochrom> Haha the module graph of lens.
2021-04-21 19:51:40 × Cale quits (~cale@cpef48e38ee8583-cm0c473de9d680.cpe.net.cable.rogers.com) (Remote host closed the connection)
2021-04-21 19:52:24 Cale joins (~cale@cpef48e38ee8583-cm0c473de9d680.cpe.net.cable.rogers.com)
2021-04-21 19:52:25 <infinisil> Oh no, some new black magic I don't know about
2021-04-21 19:53:07 × nyd quits (~nyd@unaffiliated/elysian) (Ping timeout: 252 seconds)
2021-04-21 19:53:21 dsrt^ joins (dsrt@ip98-184-89-2.mc.at.cox.net)
2021-04-21 19:53:33 <infinisil> Interesting
2021-04-21 19:57:06 <tomsmeding> templatehaskell breaks everything that's not normal compilation
2021-04-21 19:57:07 Lord_of_Life_ joins (~Lord@unaffiliated/lord-of-life/x-0885362)
2021-04-21 19:58:41 × Pickchea quits (~private@unaffiliated/pickchea) (Quit: Leaving)
2021-04-21 19:59:39 × _ht quits (~quassel@82-169-194-8.biz.kpn.net) (Remote host closed the connection)
2021-04-21 20:00:06 × Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Ping timeout: 240 seconds)
2021-04-21 20:00:14 Lord_of_Life_ is now known as Lord_of_Life
2021-04-21 20:00:38 × DavidEichmann quits (~david@147.136.46.217.dyn.plus.net) (Ping timeout: 246 seconds)
2021-04-21 20:05:15 × petersen quits (~petersen@redhat/juhp) (Ping timeout: 268 seconds)
2021-04-21 20:07:41 × conal quits (~conal@64.71.133.70) (Ping timeout: 240 seconds)
2021-04-21 20:08:14 petersen joins (~petersen@redhat/juhp)
2021-04-21 20:08:14 vgtw_ joins (~vgtw@gateway/tor-sasl/vgtw)
2021-04-21 20:08:21 × vgtw quits (~vgtw@gateway/tor-sasl/vgtw) (Ping timeout: 240 seconds)
2021-04-21 20:08:33 vgtw_ is now known as vgtw
2021-04-21 20:10:07 × Rudd0 quits (~Rudd0@185.189.115.108) (Read error: Connection reset by peer)
2021-04-21 20:10:11 × malumore quits (~malumore@151.62.122.70) (Ping timeout: 240 seconds)
2021-04-21 20:11:33 × rj quits (~x@gateway/tor-sasl/rj) (Ping timeout: 240 seconds)
2021-04-21 20:12:27 × kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection)
2021-04-21 20:13:50 × coot quits (~coot@37.30.50.130.nat.umts.dynamic.t-mobile.pl) (Quit: coot)
2021-04-21 20:14:32 × bitmapper quits (uid464869@gateway/web/irccloud.com/x-tuzcokklkvrgravg) (Quit: Connection closed for inactivity)
2021-04-21 20:15:33 × PragCypher quits (~cypher@li1507-98.members.linode.com) (Read error: Connection reset by peer)
2021-04-21 20:16:45 rj joins (~x@gateway/tor-sasl/rj)
2021-04-21 20:22:01 × Nahra quits (~user@unaffiliated/nahra) (Ping timeout: 245 seconds)
2021-04-21 20:22:10 × myShoggoth quits (~myShoggot@75.164.11.109) (Ping timeout: 260 seconds)
2021-04-21 20:23:08 × nut quits (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 268 seconds)
2021-04-21 20:29:13 nineonin_ joins (~nineonine@50.216.62.2)
2021-04-21 20:29:43 nut joins (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
2021-04-21 20:30:21 × psygate quits (~psygate@unaffiliated/psygate) (Quit: Leaving)

All times are in UTC.