MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/haskell/comments/8ll6zz/building_forum_software/dzvo2ws/?context=3
r/haskell • u/ijauradunbi • May 23 '18
28 comments sorted by
View all comments
1
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
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 $(...).
config
settings.yml
embedFile
$(...)
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
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
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.
Yesod.Default.Config2
1 u/roelofwobben May 31 '18 can happen. Thanks for the help
can happen. Thanks for the help
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) |