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
Hi, i want to wrap this type (that i cant change):
typeNormalizer=foralls.Exprsa->Maybe (Exprsa)
with this java Function-like:
dataJNormalizersa=JNormalizer (@org.dhall.eta.core.Normalizersa)
derivingClassforeignimport java unsafe"apply" applyJNormalizer
:: (s<:Object, a<:Object, t<:JExprsa, r<:JExprsa)
=> (t ->Java (JNormalizer s a) (JOptional r))
given i have instances of JavaConverter for all Dhall.Expr JExpr, (Maybe a) (JOptional ja), etc
Afaik you could not "use" the type s' and you cant add the constraint JavaConverter s js after the rank 2 type Normalizer definition.
Is there any workaround (changing the definition of JNormalizer or JavaConverter f. e.)?
The text was updated successfully, but these errors were encountered:
jneira
changed the title
Implement JavaConverter for a rank n type
Implement JavaConverter for a rank 2 type
Sep 28, 2018
Hi, i want to wrap this type (that i cant change):
with this java Function-like:
given i have instances of
JavaConverter
for allDhall.Expr JExpr
,(Maybe a) (JOptional ja)
, etcAfaik you could not "use" the type
s'
and you cant add the constraintJavaConverter s js
after the rank 2 typeNormalizer
definition.Is there any workaround (changing the definition of
JNormalizer
orJavaConverter
f. e.)?The text was updated successfully, but these errors were encountered: