Logs: liberachat/#haskell
| 2021-05-21 12:24:48 | × | azeem quits (azeem@107.161.19.109) (Quit: Connection closed) |
| 2021-05-21 12:25:17 | × | michalz quits (~user@185.246.204.47) (Ping timeout: 248 seconds) |
| 2021-05-21 12:25:21 | × | ddellacosta quits (~ddellacos@86.106.121.32) (Ping timeout: 245 seconds) |
| 2021-05-21 12:25:21 | × | nsilv quits (~nsilv@212.103.198.210) (Ping timeout: 245 seconds) |
| 2021-05-21 12:25:50 | → | haskman joins (~haskman@106.215.53.61) |
| 2021-05-21 12:26:43 | × | heath quits (~heath@68.68.64.38) (Ping timeout: 260 seconds) |
| 2021-05-21 12:27:28 | <haskman> | Do we have a good frictionless online haskell environment? |
| 2021-05-21 12:27:57 | <Taneb> | haskman: what do you mean by online haskell environment here? |
| 2021-05-21 12:28:03 | <dminuoso> | And what do you mean by frictionless? |
| 2021-05-21 12:28:30 | → | horex539 joins (~horex539@2a02:a03f:6aa5:a00:d04b:5fe1:dfa9:d5ee) |
| 2021-05-21 12:28:35 | <haskman> | Purescript has something like this - https://try.purescript.org |
| 2021-05-21 12:28:58 | <haskman> | Something that allows me to write code in a module and run it without registrations etc |
| 2021-05-21 12:29:07 | <haskman> | Try Haskell is ofcourse pretty basic |
| 2021-05-21 12:29:14 | <Taneb> | Hmm, I'm not aware of something like that |
| 2021-05-21 12:29:37 | <maerwald> | I'm starting to like viewpatterns as way to avoid a few let bindings |
| 2021-05-21 12:29:42 | <haskman> | Typescript has a fantastic environment -https://www.typescriptlang.org/play |
| 2021-05-21 12:30:11 | × | horex539 quits (~horex539@2a02:a03f:6aa5:a00:d04b:5fe1:dfa9:d5ee) (Remote host closed the connection) |
| 2021-05-21 12:30:16 | <python476> | purescript is very tempting |
| 2021-05-21 12:30:17 | <haskman> | So does ReasonML - https://reasonml.github.io/en/try |
| 2021-05-21 12:30:26 | → | horex539 joins (~horex539@2a02:a03f:6aa5:a00:d04b:5fe1:dfa9:d5ee) |
| 2021-05-21 12:30:29 | <python476> | the tutorials are very appealing |
| 2021-05-21 12:30:45 | <haskman> | Purescript is great! |
| 2021-05-21 12:30:47 | <Taneb> | haskman: I note that Purescript and Typescript (I'm not sure about ReasonML) are both designed to compile to JavaScript, and Haskell is not (although it can be) |
| 2021-05-21 12:30:57 | <python476> | you made apps in it haskman ? |
| 2021-05-21 12:31:16 | <aweinstock> | tryhaskell.org looks like it uses hint instead of ghci, and seems to support evaluating expressions, but not commands like :type or :browse |
| 2021-05-21 12:31:19 | <haskman> | Yea I've used both Haskell and PS in production several times now |
| 2021-05-21 12:31:22 | siers | is now known as zn-dev |
| 2021-05-21 12:31:27 | zn-dev | is now known as siers |
| 2021-05-21 12:32:20 | → | michalz joins (~user@185.246.204.48) |
| 2021-05-21 12:32:21 | <haskman> | Taneb: the JS backend definitely helps, but I feel the community should have something similar working for Haskell as well |
| 2021-05-21 12:33:22 | <haskman> | aweinstock: Yeah while an online repl is nice, having the ability to create a complete module is invaluable |
| 2021-05-21 12:33:34 | → | bm0 joins (~bmo@45.83.220.203) |
| 2021-05-21 12:35:20 | × | horex539 quits (~horex539@2a02:a03f:6aa5:a00:d04b:5fe1:dfa9:d5ee) (Remote host closed the connection) |
| 2021-05-21 12:35:45 | → | nsilv joins (~nsilv@212.103.198.210) |
| 2021-05-21 12:35:47 | × | bm0 quits (~bmo@45.83.220.203) (Client Quit) |
| 2021-05-21 12:37:21 | → | bmo joins (~bmo@45.83.220.203) |
| 2021-05-21 12:37:23 | → | samhh joins (~samhh@90.252.103.244) |
| 2021-05-21 12:37:31 | × | juhp quits (~juhp@128.106.188.199) (Quit: juhp) |
| 2021-05-21 12:37:35 | ← | bunny parts (~bunny@user/bunny) () |
| 2021-05-21 12:37:45 | → | juhp joins (~juhp@128.106.188.199) |
| 2021-05-21 12:38:23 | × | samhh quits (~samhh@90.252.103.244) (Client Quit) |
| 2021-05-21 12:40:00 | <boxscape> | is there an indexed monad package designed to work with QualifiedDo? |
| 2021-05-21 12:40:08 | × | python476 quits (~user@88.160.31.174) (Ping timeout: 245 seconds) |
| 2021-05-21 12:42:12 | <boxscape> | realistically I probably won't use it because I'm trying to write a script that works with vanilla ghc but I'm curious |
| 2021-05-21 12:43:02 | × | sirodoht quits (uid499766@brockwell.irccloud.com) (Quit: Connection closed for inactivity) |
| 2021-05-21 12:44:05 | × | __monty__ quits (~toonn@d51A54E75.access.telenet.be) (Changing host) |
| 2021-05-21 12:44:05 | → | __monty__ joins (~toonn@user/toonn) |
| 2021-05-21 12:45:12 | → | shapr joins (~user@pool-100-36-247-68.washdc.fios.verizon.net) |
| 2021-05-21 12:45:21 | × | bmo quits (~bmo@45.83.220.203) (Ping timeout: 245 seconds) |
| 2021-05-21 12:47:50 | <arahael> | How does one parse a hamlet file (Ie, Yesod Hamlet), into HTML? |
| 2021-05-21 12:54:33 | × | zfnmxt quits (~zfnmxt@206.28.68.51.lunanode-rdns.com) (Changing host) |
| 2021-05-21 12:54:33 | → | zfnmxt joins (~zfnmxt@user/zfnmxt) |
| 2021-05-21 12:55:16 | <arahael> | The trouble I have is that I can get a `Q Exp`, and then I have no idea what to do with it. |
| 2021-05-21 12:56:56 | <xerox> | arahael: along the lines of renderHtmlBuilder $(shamletFile "../foo.hamlet") |
| 2021-05-21 12:58:03 | <arahael> | xerox: How did you find that? |
| 2021-05-21 12:58:30 | <xerox> | https://github.com/search?q=shamletFile&type=code (: |
| 2021-05-21 12:59:26 | <arahael> | Hmm, ok, so I'm now wondering how that works... Is the '$(...)' bit a quasi-quoter or something? |
| 2021-05-21 12:59:40 | <xerox> | yeah |
| 2021-05-21 12:59:41 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 2021-05-21 13:00:18 | <xerox> | https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/template_haskell.html |
| 2021-05-21 13:00:24 | <xerox> | called a "splice" apparently |
| 2021-05-21 13:00:33 | <nsilv> | it's a splice, it basically expands the (Q a) into an a at compile time |
| 2021-05-21 13:00:48 | → | erickgnavar joins (~user@189.216.64.154) |
| 2021-05-21 13:01:17 | <arahael> | Interesting. And I can't do it at runtime? |
| 2021-05-21 13:01:48 | × | sondre quits (~sondrelun@eduroam-193-157-240-212.wlan.uio.no) (Ping timeout: 245 seconds) |
| 2021-05-21 13:02:15 | <nsilv> | in this case, you're rendering the html at runtime, but constructing the builder (based on the hamlet file) at compile time (cause you're effectively including it at compile time inside your code, and then you're expanding it into generated haskell code) |
| 2021-05-21 13:02:38 | × | xwx quits (~george@user/george) (Ping timeout: 245 seconds) |
| 2021-05-21 13:03:02 | <arahael> | nsilv: Yeah. I was hoping to read the hamlet at runtime. |
| 2021-05-21 13:03:22 | <nsilv> | arahael: and I don't think you can do it exclusively at runtime because iirc hamlet can embed haskell code inside and it gets typeh checked |
| 2021-05-21 13:03:40 | <arahael> | Hmm. So I probalby don't want hamlet, then. I should use a different templating system. |
| 2021-05-21 13:03:50 | → | vid0cq joins (vid0cq@107.161.19.109) |
| 2021-05-21 13:04:32 | → | moistoreos joins (~moistoreo@99-151-203-47.lightspeed.snantx.sbcglobal.net) |
| 2021-05-21 13:04:41 | <nsilv> | arahael: maybe something like https://hackage.haskell.org/package/ginger ? |
| 2021-05-21 13:04:44 | Raito_Bezarius | is now known as RaitoBezarius |
| 2021-05-21 13:05:11 | RaitoBezarius | is now known as Raito_Bezarius |
| 2021-05-21 13:05:27 | Raito_Bezarius | is now known as RaitoBezarius |
| 2021-05-21 13:05:30 | RaitoBezarius | is now known as Raito_Bezarius |
| 2021-05-21 13:05:48 | Raito_Bezarius | is now known as RaitoBezarius |
| 2021-05-21 13:06:05 | → | sondre joins (~sondrelun@eduroam-193-157-240-212.wlan.uio.no) |
| 2021-05-21 13:07:07 | → | Mark_ joins (uid14803@user/mark/x-9597255) |
| 2021-05-21 13:07:11 | × | RaitoBezarius quits (~Raito@user/raito-bezarius/x-8759638) (Quit: WeeChat 3.0) |
| 2021-05-21 13:07:17 | <arahael> | nsilv: Ginger looks ideal :) And familiar, as well, although I note it doesn't say it's "feature complete". |
| 2021-05-21 13:07:27 | → | Raito_Bezarius joins (~Raito@2a01:e0a:5f9:9681:a0a0:bb76:611f:9da7) |
| 2021-05-21 13:07:31 | × | Raito_Bezarius quits (~Raito@2a01:e0a:5f9:9681:a0a0:bb76:611f:9da7) (Changing host) |
| 2021-05-21 13:07:31 | → | Raito_Bezarius joins (~Raito@user/raito-bezarius/x-8759638) |
| 2021-05-21 13:07:43 | Raito_Bezarius | is now known as RaitoBezarius |
| 2021-05-21 13:07:52 | RaitoBezarius | is now known as Raito__Bezarius |
| 2021-05-21 13:08:06 | Raito__Bezarius | is now known as RedComet |
| 2021-05-21 13:08:49 | <arahael> | nsilv: And it's written by our very own tdammers, too. :) |
| 2021-05-21 13:09:02 | RedComet | is now known as Raito |
| 2021-05-21 13:09:12 | <arahael> | I'll have to give it a play soon. For now, though, bed time. 11pm and all. |
| 2021-05-21 13:09:34 | Raito | is now known as Raito_Bezarius |
| 2021-05-21 13:10:09 | <xerox> | arahael: looks like you can, the shakespeare module does provide runtime facilities https://hackage.haskell.org/package/shakespeare-2.0.25/docs/Text-Hamlet-Runtime.html |
| 2021-05-21 13:10:21 | × | sondre quits (~sondrelun@eduroam-193-157-240-212.wlan.uio.no) (Ping timeout: 245 seconds) |
| 2021-05-21 13:10:46 | → | alloca joins (~gilmi@2a03:4000:f:7ca:7407:d1ff:fe34:8cd0) |
| 2021-05-21 13:11:28 | → | jrm joins (~jrm@156.34.187.65) |
| 2021-05-21 13:12:16 | → | y04nn joins (~y04nn@193.27.14.138) |
| 2021-05-21 13:12:46 | <nsilv> | ah i guess it does have some limitations tho. which makes sense |
| 2021-05-21 13:13:32 | <arahael> | xerox: That might be useful and what I want. |
| 2021-05-21 13:14:05 | <xerox> | just don't get fooled by the word limitations, you can't do those things without compile time parsing no matter which package |
All times are in UTC.