-
Notifications
You must be signed in to change notification settings - Fork 1
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
Slightly tweak Rep and Fix for pedagogical reasons #44
Comments
The |
Correct |
We have to count how many functions use the partially applied `Rep`.
If I'm notistaken, there was a reason for the order of parameters. I'll
look into it later today!
…On Tue, Mar 5, 2019, 23:42 Arian van Putten ***@***.***> wrote:
Correct
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE-l31UlXB97Q0uOqk2w4BtZBtAF1xT9ks5vTuTYgaJpZM4bfLFc>
.
|
@arianvp , I'm not sure I understand your proposal. Currently, we have: newtype Rep (ki :: kon -> *) (phi :: Nat -> *) (code :: [[Atom kon]])
= Rep { unRep :: NS (PoA ki phi) code }
data AnnFix (ki :: kon -> *) (codes :: [[[Atom kon]]]) (phi :: Nat -> *) (n :: Nat) =
AnnFix (phi n)
(Rep ki (AnnFix ki codes phi) (Lkup n codes))
type Fix ki codes = AnnFix ki codes (Const ()) If I got it right, you are proposing we move to: newtype Rep (ki :: kon -> *) (code :: [[Atom kon]]) (phi :: Nat -> *)
= Rep { unRep :: NS (PoA ki phi) code }
data AnnFix (ki :: kon -> *) (codes :: [[[Atom kon]]]) (ann :: Nat -> *) (n :: Nat) =
AnnFix (ann n) (Rep ki (Lkup n codes) (AnnFix ki codes ann) )
type Fix ki codes = AnnFix ki codes (Const ()) Note I changed the parameter name to |
Discussing with @arianvp we concluded:
|
If we shuffle around the arguments of
Rep
, it is clear it returns a Functor overSet^n
then we can use a heterogenous
Fix
that doesnt mentiongenerics-mrsop
constructs at all.I'm not sure if we actually want it in code, but it's at least a nice comment to show there's
a direct relationship with the
Fix
that most people already know.vs
The text was updated successfully, but these errors were encountered: