Ad
  • Default User Avatar

    There are still lists with odd length in the random test.

  • Default User Avatar

    The following error still exists:

    test/DuckShootSpec.hs:27:21: error:
        • Variable not in scope:
            sub :: Char -> Char -> Integer -> String -> String
        • Perhaps you meant ‘sum’ (imported from Prelude)
       |
    27 | go ammo aim ducks = sub '2' 'X' shots ducks where 
       |                     ^^^
    
  • Default User Avatar

    I get the following error from the test module when submitting in Haskell:

    test/DisariumSpec.hs:28:10: error:
        Variable not in scope: digs :: Int -> t
       |
    28 |     ns = digs n
       |          ^^^^
    
    test/DisariumSpec.hs:29:21: error:
        • Ambiguous type variable ‘t0’ arising from a use of ‘length’
          prevents the constraint ‘(Foldable t0)’ from being solved.
          Probable fix: use a type annotation to specify what ‘t0’ should be.
          These potential instances exist:
            instance Foldable (Either a) -- Defined in ‘Data.Foldable’
            instance Foldable Maybe -- Defined in ‘Data.Foldable’
            instance Foldable ((,) a) -- Defined in ‘Data.Foldable’
            ...plus one other
            ...plus 23 instances involving out-of-scope types
            (use -fprint-potential-instances to see them all)
        • In the first argument of ‘(+)’, namely ‘length ns’
          In the expression: length ns + 1
          In the second argument of ‘zip’, namely ‘[1 .. length ns + 1]’
       |
    29 |     l0 = zip ns [1..length ns+1]
       |                     ^^^^^^^^^
    
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar