chenglou changed the topic of #reasonml to: https://reasonml.github.io. Channel logs at https://irclog.whitequark.org/reasonml. Discord: https://discord.gg/reasonml
_whitelogger has joined #reasonml
Haudegen has joined #reasonml
akr[m] has joined #reasonml
<akr[m]> Hi! I'm coming from Haskell and trying to utilize the module / functor system to do type classes
<akr[m]> I'm struggling with how to parametrize modules
<akr[m]> I made this short example to illustrate what I'd like to do: https://psty.io/p?q=f32cd
<akr[m]> Also, how do you destructure inside a lambda? Apparently let only works on the top level
<akr[m]> I'd like to do something to the effect of: `(pair) => let (a, b) = pair in a + b`
<akr[m]> I guess I need to use `switch` but can't seem to figure out how the code structure should look like
<akr[m]> nevermind about the second question for now, I split the definition into two functions
inkbottle has quit [Ping timeout: 256 seconds]
zebrag has joined #reasonml
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #reasonml
Haudegen has quit [Quit: Bin weg.]
inkbottle has joined #reasonml
zebrag has quit [Ping timeout: 264 seconds]
Haudegen has joined #reasonml
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #reasonml
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #reasonml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #reasonml
Haudegen has quit [Ping timeout: 250 seconds]