cdepillabout / servant-rawm

Effectful Raw handler for Servant servers.
https://hackage.haskell.org/package/servant-rawm
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

HasLink for RawM' #11

Closed amesgen closed 5 years ago

amesgen commented 5 years ago

It would be nice to have a HasLink instance for RawM' like this:

instance HasLink (RawM' st) where
  type MkLink (RawM' st) a = a
  toLink toA _ = toA

I can create a PR but I am not sure where to put the instance into your module structure.

cdepillabout commented 5 years ago

@amesgen Thanks for the suggestion. If you create a PR I will merge it in.

HasLink is provided by the servant package itself, right? I guess it should probably go in https://github.com/cdepillabout/servant-rawm/blob/master/src/Servant/RawM/Internal/API.hs.