Skip to content

Beta 01.11.2020

Compare
Choose a tag to compare
@mpscholten mpscholten released this 01 Nov 10:54
· 3863 commits to master since this release

Just a small out-of-line release. In the last version we broke the code generators, causing an issue when generating a new controller. When you get an error like Not in scope: type constructor or class ‘StaticControllerinstance’, update to this release.

Here's a full error message you get with v20201030 when generating a new controller:

    Not in scope: type constructor or class 'StaticControllerinstance'
  |
7 | instance AutoRoute StaticControllerinstance AutoRoute CustomersController
  |                    ^^^^^^^^^^^^^^^^^^^^^^^^

Workaround: If you don't want to update, you can easily manually fix the issue by opening Web/Routes.hs and adding a missing newline character:

You will find code like this:

instance AutoRoute StaticControllerinstance AutoRoute CustomersController

Just add a new line before the second instance:

instance AutoRoute StaticController
instance AutoRoute CustomersController

Updating

First open default.nix and change the git commit in line 4 to the following:

rev = "e21f5d743104ba8b1bed185ee85fb20e064e0bef";

After that run the following command to update your project:

nix-shell -j auto --cores 0 --run 'make -B .envrc'
make -B build/ihp-lib

Now you can start your project as usual with ./start.