Skip to content
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

nibbles: failed to compile hs (zip by scalar) #5

Open
whio opened this issue Apr 18, 2024 · 0 comments
Open

nibbles: failed to compile hs (zip by scalar) #5

whio opened this issue Apr 18, 2024 · 0 comments

Comments

@whio
Copy link

whio commented Apr 18, 2024

Nibbles code:

! ,4 0 ~ 1

Produces the following error message:

out.hs:192:824: error:
    • Couldn't match type ‘Integer’ with ‘[t0]’
      Expected type: [Integer] -> Integer -> [Integer]
        Actual type: [Integer] -> [t0] -> [Integer]
    • In the third argument of ‘\ a b f -> f a b’, namely
        ‘(((zipWith . \ f a b -> f $ (\ (~a1, ~a2) -> ((a1, a2))) (a, b))
             (\ (arg2t1, arg2t2)
                -> (((((id) (((1)) :: Integer))) :: Integer)))))’
      In the first argument of ‘id
                                . ((\ a b -> intercalate a $ map (sToA . show . confirmInt) b)
                                     secondSep)’, namely
        ‘((((\ a b f -> f a b)
              ((((\ x -> [1 .. x]) ((((id) (((4)) :: Integer))) :: Integer))) ::
                 [Integer]))
             (((\ f -> f (()))
                 (\ (arg2t1) -> (((((id) (((0)) :: Integer))) :: Integer))))))
            (((zipWith . \ f a b -> f $ (\ (~a1, ~a2) -> ((a1, a2))) (a, b))
                (\ (arg2t1, arg2t2)
                   -> (((((id) (((1)) :: Integer))) :: Integer))))))’
      In the expression:
        ((id
          . ((\ a b -> intercalate a $ map (sToA . show . confirmInt) b)
               secondSep))
           ((((\ a b f -> f a b)
                ((((\ x -> [1 .. x]) ((((id) (((4)) :: Integer))) :: Integer))) ::
                   [Integer]))
               (((\ f -> f (()))
                   (\ (arg2t1) -> (((((id) (((0)) :: Integer))) :: Integer))))))
              (((zipWith . \ f a b -> f $ (\ (~a1, ~a2) -> ((a1, a2))) (a, b))
                  (\ (arg2t1, arg2t2)
                     -> (((((id) (((1)) :: Integer))) :: Integer)))))))
nibbles: failed to compile hs (likely an internal nibbles bug, please report it!)
CallStack (from HasCallStack):
  error, called at nibbles.hs:163:24 in main:Main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant