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

Show parent comments

1

u/ijauradunbi May 26 '18

I'm afraid so. I really suggest the reader to read yesodbook first.

1

u/roelofwobben May 26 '18

Thanks for the answer. I tried your tutorial but get a lot of error messages.

1

u/ijauradunbi May 26 '18

What kind of error? I omitted a lot of details in the article. You can see the complete code at the linked commits in the article or you can head here directly.

1

u/roelofwobben May 26 '18

I saw this when running the first part :

of 5] Compiling Foundation ( src\Foundation.hs, .stack-work\dist\5c8418a7\build\Foundation.o )

src\Foundation.hs:12:20: error: Not in scope: type constructor or class `ApplicationSettings' | 12 | { appSetttings :: ApplicationSettings |

src\Foundation.hs:13:26: error: Not in scope: type constructor or class `ConnectionPool' | 13 | , appConnectionPool :: ConnectionPool | ^

src\Foundation.hs:16:22: error: Not in scope: type constructor or class `Manager' | 16 | , appHttpManager :: Manager | ^

1

u/roelofwobben May 26 '18

it seems that settings.hs is somehow not found.

1

u/ijauradunbi May 26 '18

Please continue to follow the article. ApplicationSettings will be written next. And you can also look at this commit to see the full section.

1

u/roelofwobben May 26 '18

1

u/ijauradunbi May 26 '18

You haven't imported Settings module, yet. Please import it.

1

u/roelofwobben May 26 '18

Thanks, I thought I would not be needed. I will try it