PS C:\Users\narut\OneDrive\Desktop\Monash\Year 2\Semester 2\FIT2102\Assignments\Assignment 2\Assignment 2 - Updated 29 Sep\Haskell> stack test
exercises> build (lib + exe + test) with ghc-9.2.8
Preprocessing library for exercises-0.1.0.0..
Building library for exercises-0.1.0.0..

<no location info>: warning: [-Wunused-packages]
    The following packages were specified via -package or -package-id flags,
    but were not needed for compilation:
      - time-1.11.1.1
[3 of 4] Compiling Assignment

src\Assignment.hs:45:8: error:
    • Couldn't match expected type: Char -> Parser a1
                  with actual type: Parser Char
    • The function ‘char’ is applied to one value argument,
        but its type ‘Parser Char’ has none
      In a stmt of a 'do' block: _ <- char '['
      In the expression:
        do _ <- char '['
           linkText <- some (noneof "]")
           _ <- string "]("
           url <- some (noneof ")")
           ....
   |
45 |   _ <- char '['
   |        ^^^^^^^^

src\Assignment.hs:49:8: error:
    • Couldn't match expected type: Char -> Parser a2
                  with actual type: Parser Char
    • The function ‘char’ is applied to one value argument,
        but its type ‘Parser Char’ has none
      In a stmt of a 'do' block: _ <- char ')'
      In the expression:
        do _ <- char '['
           linkText <- some (noneof "]")
           _ <- string "]("
           url <- some (noneof ")")
           ....
   |
49 |   _ <- char ')'
   |        ^^^^^^^^

src\Assignment.hs:54:35: error:
    • Couldn't match expected type: Char -> Parser a0
                  with actual type: Parser Char
    • The function ‘char’ is applied to one value argument,
        but its type ‘Parser Char’ has none
      In the first argument of ‘(*>)’, namely ‘char '`'’
      In the first argument of ‘(<*)’, namely
        ‘char '`' *> some (noneof "`")’
   |
54 | parseInlineCode = InlineCode <$> (char '`' *> some (noneof "`") <* char '`')
   |                                   ^^^^^^^^

src\Assignment.hs:54:68: error:
    • Couldn't match expected type: Char -> Parser b0
                  with actual type: Parser Char
    • The function ‘char’ is applied to one value argument,
        but its type ‘Parser Char’ has none
      In the second argument of ‘(<*)’, namely ‘char '`'’
      In the second argument of ‘(<$>)’, namely
        ‘(char '`' *> some (noneof "`") <* char '`')’
   |
54 | parseInlineCode = InlineCode <$> (char '`' *> some (noneof "`") <* char '`')
   |                                                                 
   ^^^^^^^^
Progress 1/2

Error: [S-7282]
       Stack failed to execute the build plan.

       While executing the build plan, Stack encountered the error:  

       [S-7011]
       While building package exercises-0.1.0.0 (scroll up to its    
       section to see the error) using:
       C:\Users\narut\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_CKvAmRb3_3.6.3.0_ghc-9.2.8.exe --verbose=1 --builddir=.stack-work\dist\6f82b39a build lib:exercises exe:main test:batch --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1
PS C:\Users\narut\OneDrive\Desktop\Monash\Year 2\Semester 2\FIT2102\Assignments\Assignment 2\Assignment 2 - Updated 29 Sep\Haskell>