You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if how GHC serializes its stuff, but I bet there are filepaths in there. (Cabal does, and uses Generics). So that rules out third option, except if it's a new filepath-binary-instances package which is bundled with GHC.
Otherwise I'd prefer second option, so the type-class providing package stays as dependency-light as possible.
To me it seems fine if binary depends on filepath.
What would the instance actually do? Just unwrap the underlying ShortByteString? Remember that we have two different constructors for unix and windows:
In GitLab by @phadej on Jul 17, 2022, 03:04
Where these should be?
binary
(thenbinary
would depend onfilepath
)filepath
(thenfilepath
would depend onbinary
)filepath-binary-instances
).I don't know if how GHC serializes its stuff, but I bet there are filepaths in there. (
Cabal
does, and usesGeneric
s). So that rules out third option, except if it's a newfilepath-binary-instances
package which is bundled with GHC.Otherwise I'd prefer second option, so the type-class providing package stays as dependency-light as possible.
ping @bgamari
The text was updated successfully, but these errors were encountered: