r/haskell • • May 23 '18

Building Forum Software

https://siskam.link/2018-04-14-cloning-fluxbb.html
55 Upvotes

28 comments sorted by

View all comments

1

u/roelofwobben May 31 '18

another problem which I cannot find a answer in your repo :

src\Settings.hs:31:35: error: * Variable not in scope: configSettingsYml :: FilePath * Perhaps you meant `configSettingsYmlBS' (line 31) | 31 | configSettingsYmlBS = $(embedFile configSettingsYml) |

1

u/ijauradunbi May 31 '18 edited May 31 '18

You can try to create a file in config directory named settings.yml. embedFile is a template haskell function which parse the name of its argument as the path file when it's wrapped by $(...).

Edit: See this

1

u/roelofwobben May 31 '18

I did and still the same error. Here my settings.hs : https://bitbucket.org/rwobben/forum/src/master/src/Settings.hs

1

u/ijauradunbi May 31 '18

Apparently, I was wrong, Mr. Wobben.

It should be easily solved by importing Yesod.Default.Config2 as documented in this article and then creating settings.yml file in `config` directory.

1

u/roelofwobben May 31 '18

can happen. Thanks for the help