Ad
  • Default User Avatar

    @suic. Seems to be working now :-). Many thanks for the quick turnaround.

  • Default User Avatar

    @suic @SteffenVogel - Thanks for looking into this. I am now getting a different error. It passes the 'Run Examples' still but fails on 'Attempt' with the following error:

    /tmp/haskell1161118-18-1xmytx4.pq5qld6lxr/Main.hs:33:32:
    Not in scope: `value'
    Perhaps you meant value' (line 40)

    /tmp/haskell1161118-18-1xmytx4.pq5qld6lxr/Main.hs:34:32:
    Not in scope: `value'
    Perhaps you meant value' (line 40)

    /tmp/haskell1161118-18-1xmytx4.pq5qld6lxr/Main.hs:35:32:
    Not in scope: `value'
    Perhaps you meant value' (line 40)

    /tmp/haskell1161118-18-1xmytx4.pq5qld6lxr/Main.hs:35:43:
    Not in scope: `value'
    Perhaps you meant value' (line 40)

    Cheers,
    Preston

  • Default User Avatar

    I am currently having a failure with a test case in Haskell:

    Falsifiable (after 4 tests and 3 shrinks):
    Nothing
    Just "1"

    From my understanding, I should be treating the Nothing as an empty string and the Just "1" as an empty string because it contains a character that isn't a letter. I have copied this code into a .hs file and ran the commands in ghci and my method returns True for this test.

    So I do: compare' (Just "1") Nothing and get the answer True. From my understanding this is correct. However I am still getting a failure. Any help would be appreciated!