yesodweb/yesod — Issue #270: unable to build yesod-auth-oauth
Author: JanAhrens
Created: 2012-02-16 18:30:54+00:00
State: open

I want to experiment with Yesod and OAuth and decided to use a custom compiled version for that.

### What I did
Using the instructions in the README.md I was able to build the four repositories. I noticed that the `yesod-auth-oauth` was not build along with the `./scripts/install` script in the `yesod` repository, so I tried to add it to `package-list.sh` and `sources.txt`.

### What happend
The build failed with an error, telling that the data constructor `OAuth` is not in scope:

~/yesod $ ./scripts/install --clean
[...]
Registering yesod-0.10.1...
Configuring yesod-auth-oauth-0.8.0...
Preprocessing library yesod-auth-oauth-0.8.0...
Building yesod-auth-oauth-0.8.0...
[1 of 1] Compiling Yesod.Auth.OAuth ( Yesod/Auth/OAuth.hs, dist/build/Yesod/Auth/OAuth.o )
Loading package ghc-prim ... linking ... done.
[...]
Loading package ffi-1.0 ... linking ... done.

Yesod/Auth/OAuth.hs:43:13: Not in scope: data constructor `OAuth'
Configuring yesod-sitemap-0.3.0...
Preprocessing library yesod-sitemap-0.3.0...
Configuring yesod-sitemap-0.3.0...
[...]
Registering yesod-static-0.10.1...
cabal: Error: some packages failed to install:
yesod-auth-oauth-0.8.0 failed during the building phase. The exception was:
ExitFailure 1
installation failure!
If you are just installing and haven't mucked with the code,
please report this to the mail list at http://groups.google.com/group/yesodweb
or on the issue tracker at http://github.com/yesodweb/issues

Since I haven't mucked with the code (only the build-configuration-file) and don't know enough about the dependency management to solve this myself, I'm hoping that you can help me with this.

### My setup
#### GHC
~/yesod $ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.4
#### Cabal

~/yesod $ cabal --version
cabal-install version 0.10.2
using version 1.10.2.0 of the Cabal library
#### Yesod
~/yesod $ git show HEAD
commit 5b75d6758aacdae6c4092d3ef3cbc20d5c29f67d
[...]
Date: Thu Feb 16 12:21:16 2012 -0200
#### Local changes to the yesod repository
~/yesod $ git diff -U1 .
diff --git a/package-list.sh b/package-list.sh
index c461efb..5b13c78 100644
--- a/package-list.sh
+++ b/package-list.sh
@@ -12,2 +12,3 @@ pkgs=( ./yesod-routes
./yesod-default
- ./yesod )
+ ./yesod
+ ./yesod-auth-oauth )
diff --git a/sources.txt b/sources.txt
index 60ba2fa..ffcbfbe 100644
--- a/sources.txt
+++ b/sources.txt
@@ -10 +10,2 @@ yesod-default
yesod
+yesod-auth-oauth