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
Of course, mkR .* #x .= 'a' .* #x .= 'b' is wrong, but it would be nice if it gave a clear error and didn't defer it unexpectedly.
$ ghci -fplugin=Coxswain-XOverloadedLabels-XDataKinds-XTypeFamilies-XTypeOperators-XFlexibleContexts-fconstraint-solver-iterations=1000GHCi, version 8.2.1: http://www.haskell.org/ghc/:? for help
Prelude>:m +Data.Sculls.SymbolPreludeData.Sculls.Symbol> mkR .*#x .=3.*#x .=4<interactive>:1:1:error:Ambiguoustype variables ‘t0’, ‘t1’ arising from a use of‘print’
prevents the constraint ‘(Data.Sculls.Internal.RecordAndVariant.RAll2
(ShowColI)
(Normalize ((Row0.& ("x".= t0)) .& ("x".= t1)))
2)’ from being solved.Probable fix: use a type annotation to specify what ‘t0’, ‘t1’ should be.These potential instance exist:instanceforallklkt (c::kl->kt->Constraint) (l0::kl) (t0::kt) (l1::kl) (t1::kt).
(cl0t0, cl1t1) =>Data.Sculls.Internal.RecordAndVariant.RAll2c ('NExt ('NExt 'NRow0 l1t1) l0t0) 2-- Defined in ‘Data.Sculls.Internal.RecordAndVariant’PreludeData.Sculls.Symbol> mkR .*#x .='a'.*#x .='b'::RI (Row0.&"x".=Char)
{(x=***Exception:<interactive>:3:1:error:•No instance for (Lacks (Row0.& ("x".=Char)) "x")
arising from a use of‘.*’•In the expression:
mkR .*#x .='a'.*#x .='b'::RI (Row0.& ("x".=Char))
In an equation for ‘it’:
it = mkR .*#x .='a'.*#x .='b'::RI (Row0.& ("x".=Char))
(deferred typeerror)
The text was updated successfully, but these errors were encountered:
Of course,
mkR .* #x .= 'a' .* #x .= 'b'
is wrong, but it would be nice if it gave a clear error and didn't defer it unexpectedly.The text was updated successfully, but these errors were encountered: