Re: [Haskell-cafe] ANN: happstack-auth-0.2

2010-09-18 Thread Nils Schweinsberg

Am 17.09.2010 22:06, schrieb Nils Schweinsberg:

[1] http://hackage.haskell.org/package/happstack-auth


Hackage fails to build this package:

http://hackage.haskell.org/packages/archive/happstack-auth/0.2/logs/failure/ghc-6.12

However, Crypto == 4.* should be on hackage:

http://hackage.haskell.org/package/Crypto-4.2.1

Is there anything I can do with my package to get this to build?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: happstack-auth-0.2

2010-09-18 Thread Ross Paterson
On Sat, Sep 18, 2010 at 08:19:33PM +0200, Nils Schweinsberg wrote:
 Am 17.09.2010 22:06, schrieb Nils Schweinsberg:
 [1] http://hackage.haskell.org/package/happstack-auth
 
 Hackage fails to build this package:
 
 http://hackage.haskell.org/packages/archive/happstack-auth/0.2/logs/failure/ghc-6.12
 
 However, Crypto == 4.* should be on hackage:
 
 http://hackage.haskell.org/package/Crypto-4.2.1
 
 Is there anything I can do with my package to get this to build?

Unfortunately Crypto-4.2.1 was broken by the latest version of QuickCheck
(2.3), which introduced Arbitrary instances for the Word types:

http://hackage.haskell.org/packages/archive/Crypto/4.2.1/logs/failure/ghc-6.12

A new release of Crypto, without those instances, is needed.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: happstack-auth-0.2

2010-09-18 Thread Thomas DuBuisson
Why are you using Crypto?  I'm hoping to make Crypto as we know it
obsolete.  To that end, I've been working on a unified interface
(crypto-api) and after the algorithms packages catch up I planned to
make a meta package crypto-algs.

Cheers,
Thomas

On Sat, Sep 18, 2010 at 11:19 AM, Nils Schweinsberg m...@n-sch.de wrote:
 Am 17.09.2010 22:06, schrieb Nils Schweinsberg:

 [1] http://hackage.haskell.org/package/happstack-auth

 Hackage fails to build this package:

 http://hackage.haskell.org/packages/archive/happstack-auth/0.2/logs/failure/ghc-6.12

 However, Crypto == 4.* should be on hackage:

 http://hackage.haskell.org/package/Crypto-4.2.1

 Is there anything I can do with my package to get this to build?
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ANN: happstack-auth-0.2

2010-09-17 Thread Nils Schweinsberg

Hey!

I'd like to announce the release of happstack-auth-0.2 [1]. It offers an 
easy (and secure) way to implement user authentication for Happstack web 
applications with a lot of high level functions and a solid 
Happstack-State back-end.


The original project got started by MightyByte, until I took it over and 
improved the whole package. As a result, the API has changed a lot and 
if you were using the old happstack-auth you might consider rewriting 
your application to use the new api.* However, your applications state 
will be completely compatible with the new version and be migrated 
automatically.


The package got uploaded to hackage and can now be installed via cabal:

cabal install happstack-auth

It should build with both, the current stable release of happstack 
(0.5.0.2) and the latest darcs version (0.5.1). If there are any 
errors/bugs during building/running, please contact me!


A demonstration website is up and running with about 30 lines of code (+ 
html templates and the actual happstack server code) at [2].


If you don't want to wait until hackage rendered the haddock pages, you 
can take a look at the (latest git version of the) API at [3].




Hope you enjoy it! :)

- Nils Schweinsberg / McManiaC



* You can still use the old state-query/update constructors by importing 
Happstack.Auth.Internal, although you'll miss a lot of features like 
session management etc. In addition, MightyBytes old repo should be 
still available at [4].


[1] http://hackage.haskell.org/package/happstack-auth
[2] http://n-sch.de/happstack-auth
[3] http://n-sch.de/hdocs/happstack-auth
[4] http://github.com/mightybyte/happstack-auth
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe