Skip to content

Compilation error when running pulp test #7

@kototama

Description

@kototama

Hi,

I get a compilation error when running pulp test:

pulp test
* Building project in /home/user/projects/purescript-simple-request
Compiling Control.Monad.Aff.Console
Compiling Node.SimpleRequest
Warning found:
in module Node.SimpleRequest
at /home/user/projects/purescript-simple-request/src/Node/SimpleRequest.purs line 33, column 1 - line 33, column 28

  The import of module Control.Bind is redundant


See https://github.com/purescript/documentation/blob/master/errors/UnusedImport.md for more information,
or to contribute content related to this warning.


Error 1 of 2:

  in module Control.Monad.Aff.Console
  at /home/user/projects/purescript-simple-request/bower_components/purescript-aff/src/Control/Monad/Aff/Console.purs line 36, column 1 - line 36, column 34

    No type class instance was found for
                                                                
      Control.Monad.Eff.Class.MonadEff ( "console" :: CONSOLE   
                                       | t0                     
                                       )                        
                                       (Aff                     
                                          ( "console" :: CONSOLE
                                          | eff1                
                                          )                     
                                       )                        
                                                                
    The instance head contains unknown type variables. Consider adding a type annotation.

  while checking that expression (compose liftEff) warnShow
    has type forall a eff.                            
               (Show a) => a                          
                           -> Aff                     
                                ( "console" :: CONSOLE
                                | eff                 
                                )                     
                                Unit                  
  while applying a function compose
    of type forall b c d a. (Semigroupoid a) => a c d -> a b c -> a b d
    to argument liftEff
  in value declaration warnShow

  where eff1 is a rigid type variable
          bound at line 36, column 1 - line 36, column 34
        t0 is an unknown type

  See https://github.com/purescript/documentation/blob/master/errors/NoInstanceFound.md for more information,
  or to contribute content related to this error.

Error 2 of 2:

  in module Node.SimpleRequest
  at /home/user/projects/purescript-simple-request/src/Node/SimpleRequest.purs line 131, column 1 - line 136, column 1

    No type class instance was found for
                                                              
      Control.Monad.Eff.Class.MonadEff ( "buffer" :: BUFFER   
                                       | t0                   
                                       )                      
                                       (Aff                   
                                          ( "buffer" :: BUFFER
                                          )                   
                                       )                      
                                                              
    The instance head contains unknown type variables. Consider adding a type annotation.

  while checking that expression let                                  
                                   buffer = (apply liftEff) (create 0)
                                 in unsafeInterleaveAff buffer        
    has type forall e. Aff e Buffer
  while applying a function apply
    of type forall a b. (a -> b) -> a -> b
    to argument liftEff
  in value declaration getEmptyBuffer

  where t0 is an unknown type

  See https://github.com/purescript/documentation/blob/master/errors/NoInstanceFound.md for more information,
  or to contribute content related to this error.


* ERROR: Subcommand terminated with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions