New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PrimMonad instance for CatchT #218
Comments
I wouldn't like a dependency on |
Agreed about the dependency thing. also the docs of CatchT mention that |
The problem is that |
I don't think of |
I'd much rather not lump all the classes into one package, unless that is |
That's fair. Since |
I can ask. Remember, though, that Paterson can effectively veto moving those two to |
The upgrade path is also non-trivial, so we'd need a plan. |
The upgrade path I imagined was:
|
we aren't adding dependencies to primitive, it doesn't help folks. And at some point folks in user space need to just write their own instances. i'm actually working slowly on exploring splitting out the unlifted stuff into its own package. but thats also because i think the folks who are actually gonna use that are a specialized population. realistically its gonna be years before we drop 8.0 i expect, i still try to make simpler packages i write work as far back as 7.0 or 7.6, and the meat and potatoes of primitive is stuff that should be super duper stable |
primmonad is def gonna stay in primitive, |
(i mean, if core libraries wants to adopt stuff, great, but base getting bigger actually hurts folk, eg, base recently got big enough that dwarf data gnerated by ghc at -g1 is now sooo much that you can't do a dwarf annotated build of base on mac OS X! anymore) |
@cartazio, can you consider my reasoning for splitting the package up rather than just rejecting out of hand? Users would only need to depend on |
i'm all for splitting out the unlifted and array kits into sub systems, so i aggree, just which is where, i think more like primitive as the simple one, then -unlifted and -primarray and perhaps a -fancy overlay for experimental / exploratory stuff that needed be as long lived / stable |
@cartazio, I see. I had been operating on the assumption that we'd want as little breakage as possible. Moving things altogether out of |
very little code depends on unlifted and primarray, and theyre more complicated / less used by ecosystem, so i'm inclined to make it easier to workshop / iterate on those |
(so i'm not terribly concerned about user impact from moving those out, theyre both pretty recent) |
That may be, but |
i'm working through some of the implications of different parts, im definitely comfortable moving unlifted tools out into its own thing, and def not 100% on the prim/byte array bits. I've struggled to find any widely used/depended upon code in the wild that uses address. aside from the one gross spot in vector, have you seen any? @treeowl it occurs to me, maybe we should create a "modern-pointer-experiments" package so we can workshop out some various modern style/improved pointer apis for haskell? |
I make pretty heavy use of |
Definitely!
Yeah, I spoke with chessai about that and it seems like it’d be easy to fix
on your side, or at least those apis would work just as correctly with say
‘Ptr a’, moral aesthetics / quality issues with say the storable pointer
api (we should experiment with better pointer interfaces)
…On Sun, Dec 2, 2018 at 3:16 PM Andrew Martin ***@***.***> wrote:
I make pretty heavy use of Addr in some of the software I work on for my
job and in several unpublished libraries on my github. I am likely the main
user of this API.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#218 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwoVUlP8CyDvJbmPwrqgEhLiZn3Bdks5u1DUCgaJpZM4Y9O4A>
.
|
*aesthetic issues in the Address vs Ptr a vs current pointer apis could be
made better aside
On Sun, Dec 2, 2018 at 6:59 PM Carter Schonwald <carter.schonwald@gmail.com>
wrote:
… Definitely!
Yeah, I spoke with chessai about that and it seems like it’d be easy to
fix on your side, or at least those apis would work just as correctly with
say ‘Ptr a’, moral aesthetics / quality issues with say the storable
pointer api (we should experiment with better pointer interfaces)
On Sun, Dec 2, 2018 at 3:16 PM Andrew Martin ***@***.***>
wrote:
> I make pretty heavy use of Addr in some of the software I work on for my
> job and in several unpublished libraries on my github. I am likely the main
> user of this API.
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <#218 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAQwoVUlP8CyDvJbmPwrqgEhLiZn3Bdks5u1DUCgaJpZM4Y9O4A>
> .
>
|
That is not a shared opinion.
Also I think that this issue has derailed a bit. The splitting off of
typeclasses into base or other packages should probably be its own issue.
On Sun, Dec 2, 2018, 7:00 PM Carter Tazio Schonwald <
notifications@github.com wrote:
… *aesthetic issues in the Address vs Ptr a vs current pointer apis could be
made better aside
On Sun, Dec 2, 2018 at 6:59 PM Carter Schonwald <
***@***.***>
wrote:
> Definitely!
>
> Yeah, I spoke with chessai about that and it seems like it’d be easy to
> fix on your side, or at least those apis would work just as correctly
with
> say ‘Ptr a’, moral aesthetics / quality issues with say the storable
> pointer api (we should experiment with better pointer interfaces)
>
>
>
> On Sun, Dec 2, 2018 at 3:16 PM Andrew Martin ***@***.***>
> wrote:
>
>> I make pretty heavy use of Addr in some of the software I work on for my
>> job and in several unpublished libraries on my github. I am likely the
main
>> user of this API.
>>
>> —
>> You are receiving this because you were mentioned.
>>
>>
>> Reply to this email directly, view it on GitHub
>> <#218 (comment)
>,
>> or mute the thread
>> <
https://github.com/notifications/unsubscribe-auth/AAAQwoVUlP8CyDvJbmPwrqgEhLiZn3Bdks5u1DUCgaJpZM4Y9O4A
>
>> .
>>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#218 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARyL66rtFEI_AYOQHAZ49FkROX4wuKhSks5u1GmagaJpZM4Y9O4A>
.
|
exceptions
defines aCatchT
type that can be given aPrimMonad
instance. Should we accept the dependency to add it?The text was updated successfully, but these errors were encountered: