Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing with Stack #468

Open
decapo01 opened this issue Dec 24, 2020 · 4 comments
Open

Installing with Stack #468

decapo01 opened this issue Dec 24, 2020 · 4 comments

Comments

@decapo01
Copy link

Is there a way I can install and use fay with stack? Having a shared library then server that serves an api and client that call the server.

@swamp-agr
Copy link
Contributor

Hi @decapo01,

Could you please try this repo?

  1. Clone repo.
  2. Execute command:
stack install --flag="front:examples"

I am kindly ask you to tell me about the issues if they appeared.

@decapo01
Copy link
Author

Thanks! I'll try and give it a shot this weekend.

@chtenb
Copy link

chtenb commented May 18, 2021

How would I install fay using stack when I'm only interested in client-side use?

@decapo01
Copy link
Author

decapo01 commented Dec 14, 2021

Better late than never....I tried to install this with stack install --flag="font:examples" and get this error

Progress 141/152: language-ecmascript, language-javascript, servant-auth-cookie, yesod-websock                                                                                              servant-auth-cookie              > /tmp/stack-d0c1376b4458700c/servant-auth-cookie-0.6.0.3/src/Servant/Server/Experimental/Auth/Cookie.hs:139:28: error:
Progress 141/152: language-ecmascript, language-javascript, servant-auth-cookie, yesod-websock                                                                                              servant-auth-cookie              >     Module ‘Servant’ does not export ‘ServantErr(..)’
Progress 141/152: language-ecmascript, language-javascript, servant-auth-cookie, yesod-websock                                                                                              servant-auth-cookie              >     |
Progress 141/152: language-ecmascript, language-javascript, servant-auth-cookie, yesod-websock                                                                                              servant-auth-cookie              > 139 | import Servant (addHeader, ServantErr (..))
Progress 141/152: language-ecmascript, language-javascript, servant-auth-cookie, yesod-websock                                                                                              servant-auth-cookie              >     |                            ^^^^^^^^^^^^^^^

Also I've noticed in the the example you provided that the Client does not import anything from the Shared. Is that possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants