Comments (4)
Have you tried updating rib to latest revision?
from rib.
Just tried that now. Once I got filepaths and everything working again for the new version, though, I find that I'm still running into the same problem. Rib just seems to hang after compiling everything. Here's the full error message:
: warning: [-Wmissing-home-modules]
These modules are needed for compilation but not listed in your .cabal file's other-modules:
CV CV.Other CV.Projects CV.Shared CV.Teaching
[1 of 6] Compiling CV.Shared ( src/CV/Shared.hs, interpreted )
[2 of 6] Compiling CV.Projects ( src/CV/Projects.hs, interpreted )
[3 of 6] Compiling CV.Other ( src/CV/Other.hs, interpreted )
[4 of 6] Compiling CV.Teaching ( src/CV/Teaching.hs, interpreted )
[5 of 6] Compiling CV ( src/CV.hs, interpreted )
src/CV.hs:65:22-25: warning: [-Wname-shadowing]
This binding for ‘date’ shadows the existing binding
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:20:1-4)
|
65 | formatUpdate (Update date event) = li_ [ class_ "update" ] $ do
| ^^^^
src/CV.hs:107:28-39: warning: [-Wname-shadowing]
This binding for ‘workshopName’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:11:28-39)
|
107 | Workshop workshopDates workshopName workshopVenue workshopURL workshopNotes -> do
| ^^^^^^^^^^^^
src/CV.hs:107:67-79: warning: [-Wunused-matches]
Defined but not used: ‘workshopNotes’
|
107 | Workshop workshopDates workshopName workshopVenue workshopURL workshopNotes -> do
| ^^^^^^^^^^^^^
src/CV.hs:112:12-16: warning: [-Wname-shadowing]
This binding for ‘dates’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:10:28-32)
|
112 | Course dates name role venue url notes -> do
| ^^^^^
src/CV.hs:112:18-21: warning: [-Wname-shadowing]
This binding for ‘name’ shadows the existing bindings
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:74:22-25)
imported from ‘Clay’ at src/CV.hs:16:1-65
(and originally defined in ‘Clay.Attributes’)
|
112 | Course dates name role venue url notes -> do
| ^^^^
src/CV.hs:112:23-26: warning: [-Wname-shadowing]
This binding for ‘role’ shadows the existing binding
imported from ‘CV.Projects’ at src/CV.hs:8:1-18
(and originally defined at src/CV/Projects.hs:10:3-6)
|
112 | Course dates name role venue url notes -> do
| ^^^^
src/CV.hs:112:23-26: warning: [-Wunused-matches]
Defined but not used: ‘role’
|
112 | Course dates name role venue url notes -> do
| ^^^^
src/CV.hs:112:28-32: warning: [-Wname-shadowing]
This binding for ‘venue’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:12:28-32)
|
112 | Course dates name role venue url notes -> do
| ^^^^^
src/CV.hs:112:34-36: warning: [-Wname-shadowing]
This binding for ‘url’ shadows the existing bindings
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:13:28-30)
imported from ‘Clay’ at src/CV.hs:16:1-65
(and originally defined in ‘Clay.Background’)
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:49:20-22)
|
112 | Course dates name role venue url notes -> do
| ^^^
src/CV.hs:112:38-42: warning: [-Wname-shadowing]
This binding for ‘notes’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:14:28-32)
|
112 | Course dates name role venue url notes -> do
| ^^^^^
src/CV.hs:112:38-42: warning: [-Wunused-matches]
Defined but not used: ‘notes’
|
112 | Course dates name role venue url notes -> do
| ^^^^^
src/CV.hs:136:32-35: warning: [-Wname-shadowing]
This binding for ‘role’ shadows the existing binding
imported from ‘CV.Projects’ at src/CV.hs:8:1-18
(and originally defined at src/CV/Projects.hs:10:3-6)
|
136 | formatAffiliation (Affiliation role venue ranges) = li_ [ class_ "affiliation" ] $ do
| ^^^^
src/CV.hs:136:37-41: warning: [-Wname-shadowing]
This binding for ‘venue’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:12:28-32)
|
136 | formatAffiliation (Affiliation role venue ranges) = li_ [ class_ "affiliation" ] $ do
| ^^^^^
src/CV.hs:176:14-17: warning: [-Wname-shadowing]
This binding for ‘date’ shadows the existing binding
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:20:1-4)
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^
src/CV.hs:176:14-17: warning: [-Wunused-matches]
Defined but not used: ‘date’
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^
src/CV.hs:176:32-35: warning: [-Wname-shadowing]
This binding for ‘kind’ shadows the existing binding
imported from ‘Clay’ at src/CV.hs:16:1-65
(and originally defined in ‘Clay.Attributes’)
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^
src/CV.hs:176:32-35: warning: [-Wunused-matches]
Defined but not used: ‘kind’
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^
src/CV.hs:176:37-41: warning: [-Wname-shadowing]
This binding for ‘title’ shadows the existing binding
imported from ‘CV.Projects’ at src/CV.hs:8:1-18
(and originally defined at src/CV/Projects.hs:9:3-7)
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^^
src/CV.hs:176:37-41: warning: [-Wunused-matches]
Defined but not used: ‘title’
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^^
src/CV.hs:176:43-45: warning: [-Wname-shadowing]
This binding for ‘url’ shadows the existing bindings
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:13:28-30)
imported from ‘Clay’ at src/CV.hs:16:1-65
(and originally defined in ‘Clay.Background’)
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:49:20-22)
|
176 | Update date (Publication kind title url venue) -> True
| ^^^
src/CV.hs:176:43-45: warning: [-Wunused-matches]
Defined but not used: ‘url’
|
176 | Update date (Publication kind title url venue) -> True
| ^^^
src/CV.hs:176:47-51: warning: [-Wname-shadowing]
This binding for ‘venue’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:12:28-32)
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^^
src/CV.hs:176:47-51: warning: [-Wunused-matches]
Defined but not used: ‘venue’
|
176 | Update date (Publication kind title url venue) -> True
| ^^^^^
src/CV.hs:188:12-15: warning: [-Wname-shadowing]
This binding for ‘date’ shadows the existing binding
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:20:1-4)
|
188 | Update date (Talk title uri venue) -> True
| ^^^^
src/CV.hs:188:12-15: warning: [-Wunused-matches]
Defined but not used: ‘date’
|
188 | Update date (Talk title uri venue) -> True
| ^^^^
src/CV.hs:188:23-27: warning: [-Wname-shadowing]
This binding for ‘title’ shadows the existing binding
imported from ‘CV.Projects’ at src/CV.hs:8:1-18
(and originally defined at src/CV/Projects.hs:9:3-7)
|
188 | Update date (Talk title uri venue) -> True
| ^^^^^
src/CV.hs:188:23-27: warning: [-Wunused-matches]
Defined but not used: ‘title’
|
188 | Update date (Talk title uri venue) -> True
| ^^^^^
src/CV.hs:188:29-31: warning: [-Wunused-matches]
Defined but not used: ‘uri’
|
188 | Update date (Talk title uri venue) -> True
| ^^^
src/CV.hs:188:33-37: warning: [-Wname-shadowing]
This binding for ‘venue’ shadows the existing binding
imported from ‘CV.Teaching’ at src/CV.hs:9:1-18
(and originally defined at src/CV/Teaching.hs:12:28-32)
|
188 | Update date (Talk title uri venue) -> True
| ^^^^^
src/CV.hs:188:33-37: warning: [-Wunused-matches]
Defined but not used: ‘venue’
|
188 | Update date (Talk title uri venue) -> True
| ^^^^^
[6 of 6] Compiling Main ( src/Main.hs, interpreted )
src/Main.hs:27:1-11: warning: [-Wunused-imports]
The import of ‘Path’ is redundant
except perhaps to import instances from ‘Path’
To import instances alone, use: import Path()
|
27 | import Path
| ^^^^^^^^^^^
Ok, six modules loaded.
�]0;31 warnings - jonreeve.com-rib�
src/CV.hs:65:22-25: warning: [-Wname-shadowing]
This binding for ‘date’ shadows the existing binding
imported from ‘CV.Shared’ at src/CV.hs:10:1-16
(and originally defined at src/CV/Shared.hs:20:1-4)
|
65 | formatUpdate (Update date event) = li_ [ class_ "update" ] $ do
| ^^^^
src/CV.hs:107:28-39: warning: [-Wname-shadowing]�[?25h
from rib.
@JonathanReeve I tried to reproduce this in https://github.com/JonathanReeve/jonreeve.com/tree/rib
It is not that "rib hangs" - rather that ghcid is spitting out warnings in your code. If there are any warnings it does not run the main entry point (which gave you the impression of it hanging). You can either fix those warnings, or pass --warnings
to ghcid to make it ignore it (I'd generally recommend fixing the warnings).
For the later approach, which also quickly fixes things for you, try:
nix-shell --run 'ghcid --warnings -T ":main -wS"'
(Note that with new rib you need -wS
argument, instead of serve
)
from rib.
Great! That did the trick. I guess I'd thought warnings wouldn't block ghcid
, but now I see that they do. Thanks! I'll close this.
from rib.
Related Issues (20)
- Support for websites located in subdirectories HOT 5
- Simplify rib CLI commands
- Document custom CLI arguments
- Document Syntax highlighting
- Allow customizing server host
- Display build errors in HTTP interface HOT 1
- watchIgnore should not resolve symlinks
- Clean stale generated files automatically
- Add `routeUri`
- Split into two packages
- Chokes on integers as title -- eg: 2020 HOT 2
- Use shake-dhall
- Version bounds on relude and dhall are very strict HOT 2
- Please, give a new release HOT 2
- Allow query arguments in route Url
- Turn symlinks into redirect files HOT 6
- Use external templating system (like EDE) + need of a function to relativize urls HOT 2
- aeson upper bound is out of date
- Recommend Ema once it is released
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rib.