-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
Description
- OS: Arch linux
- node
v14.16.0
- npm
v6.14.11
- pulp
v15.0.0
- purs
v0.14.0
- spago
0.19.1
steps to reproduce
1. create repro project
mkdir spago-docs-bug && cd spago-docs-bug && spago init
2. reference arrays in a public item
src/Main.hs
module Main where
import Prelude
import Effect.Console (log)
nums :: Array Int
nums = [1,2,3]
main = log $ show nums
3. generate docs
spago docs
Observed output & errors
Click to expand
Documentation written to: generated-docs/html
Building the search index...
"docs.json" decoding failed failed for output/Data.Generic.Rep/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 6:
At object key 'typeArguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Symbol"]}'.
"docs.json" decoding failed failed for output/Data.Symbol/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'arguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Symbol"]}'.
"docs.json" decoding failed failed for output/Data.Unit/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}'.
"docs.json" decoding failed failed for output/Effect.Uncurried/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]}]}'.
"docs.json" decoding failed failed for output/Effect/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]}'.
"docs.json" decoding failed failed for output/Prim.Boolean/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Boolean"]}'.
"docs.json" decoding failed failed for output/Prim.Coerce/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'arguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeVar","contents":"k"}'.
"docs.json" decoding failed failed for output/Prim.Ordering/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}'.
"docs.json" decoding failed failed for output/Prim.Row/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'arguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Row"]},{"annotation":[],"tag":"TypeVar","contents":"k"}]}'.
"docs.json" decoding failed failed for output/Prim.RowList/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]}'.
"docs.json" decoding failed failed for output/Prim.Symbol/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'arguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Symbol"]}'.
"docs.json" decoding failed failed for output/Prim.TypeError/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'arguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeConstructor","contents":[["Prim","TypeError"],"Doc"]}'.
"docs.json" decoding failed failed for output/Prim/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 0:
At object key 'kind':
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]}]}'.
"docs.json" decoding failed failed for output/Type.Proxy/docs.json: An error occurred while decoding a JSON value:
At object key 'declarations':
Under 'Array':
At array index 2:
At object key 'typeArguments':
Under 'Array':
At array index 0:
Expected value of type 'Couldn't parse Kind from {"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeApp","contents":[{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Function"]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]},{"annotation":[],"tag":"TypeConstructor","contents":[["Prim"],"Type"]}]}]}'.
Indexing 54 modules from 4 packages...
Added 235 definitions and 174 type definitions from 4 packages to the search index.