haskell / filepath

Haskell FilePath core library
BSD 3-Clause "New" or "Revised" License
66 stars 33 forks source link

make `osp :: QuasiQuoter` valid as a pattern #210

Closed lawbel closed 7 months ago

lawbel commented 7 months ago

Resolves issue #205

Notes:

Bodigrim commented 7 months ago

I think filepath should define just

osp :: QuasiQuoter
osp = OS.osstr

pstr :: QuasiQuoter
pstr = OS.osstr

while the actual quasiquoter to be improved in https://github.com/haskell/os-string.

hasufell commented 7 months ago

I think filepath should define just

osp :: QuasiQuoter
osp = OS.osstr

pstr :: QuasiQuoter
pstr = OS.osstr

while the actual quasiquoter to be improved in https://github.com/haskell/os-string.

We run isValid at compile time here, which we don't in the osstr quasiquoters.

hasufell commented 7 months ago

@lawbel we probably want this patch for os-string as well

lawbel commented 7 months ago

@hasufell sorry I wasn't able to look at this over the weekend. I see you've done a PR for os-string as well, so I guess this is all done then? I appreciate the help in getting this over the line :smile: