JordanMartinez/learn-halogen

spago docs failing

Closed this issue · 5 comments

spago docs failed with the following error

Generating documentation for the project. This might take a while..
Error found:
in module Halogen.Query.EventSource
at .spago/halogen/v5.0.0-rc.4/src/Halogen/Query/EventSource.purs:32:8 - 32:66 (line 32, column 8 - line 32, column 66)

  Type class instances for type synonyms are disallowed.

in type class instance
                                                         
  Data.Newtype.Newtype (EventSource m a)                 
                       (m                                
                          { finalizer :: Finalizer m     
                          , producer :: Producer a m Unit
                          }                              
                       )                                 
                                                         

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


spago: Docs generation failed.

I'm able to reproduce this.

The error arises due to this line.

This might be caused by using an outdated dependency. I'll need to check on my own via bower.

I've notified readers of this bug in the ReadMe in development. I'll be merging my work soon, so that others will see this when the repo loads

Found this solution.

I'll push out the fix later today.

The solution failed. So, I'm not sure whether this is actually a bug in spago docs or not...
I'll look into it later.

If someone comes across this in the future, try running this command:

# delete these folders
rm -rf .spago/ generated-docs/ output/
# reinstall
spago install
# run build and/or docs
spago build
spago docs