Re: [Haskell-cafe] hsql-mysql encoding issues

2012-10-29 Thread Alexander Bau
Hi,

 what DB binding should I rather be using?

mongoDB [1] works well (also for data with umlauts) for my feed
aggregator [2].

Best regards,

Alex


[1] http://hackage.haskell.org/package/mongoDB
[2] http://hackage.haskell.org/package/lucienne



signature.asc
Description: OpenPGP digital signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ANN: lucienne-0.0.1

2012-06-09 Thread Alexander Bau
Hi,

some time ago I wrote lucienne[1] using the happstack framework:

 Lucienne is a simple server side feed aggregator/reader that helps 
 you managing your subscribed feeds. It provides multi user support 
 using basic access authentication. A running mongoDB serves as
 database backend.

For more information, check [1] and [2].

Best regards,

Alex

[1] http://hackage.haskell.org/package/lucienne
[2] http://www.imn.htwk-leipzig.de/~abau/lucienne


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


[Haskell-cafe] Type classes in Typing Haskell in Haskell

2011-12-29 Thread Alexander Bau

Hi,

recently I tried the Typing Haskell in Haskell library. But I was  
wondering why this program type checks:



-- plusMfun is standard '+': Num a = a - a - a
test =  let Just classEnv = ( addCoreClasses : addNumClasses )  
initialEnv

  e = Ap ( Ap (Var +) (Lit $ LitStr 3)) (Lit $ LitStr 5)
  impl = (foo,[([],e)])
  in
putStrLn $ pretty $ runTI $ tiImpls classEnv [plusMfun] [impl]


I was expecting some kind of typechecking error, because [Char] is no
instance of Num. But I get this:


([isIn1 cNum (TAp tList tChar)],
 [foo ::
Forall []
  ([] :=
 (TAp tList tChar))])


The predicate says that if [Char] would be in Num then the type of the  
expression would be [Char]. But actually [Char] isn't in Num. So, how do I  
provoke a type check error in this case?


Thanks in advance.


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


Re: [Haskell-cafe] Unknown symbol `__dso_handle' with Template Haskell and wxHaskell

2010-12-27 Thread Alexander Bau
 GHCi and cabal didn't work, but ghc --make did.

Neither GHCi, cabal nor ghc --make works.

I refactored my code, so that all TH related stuff does not depend on 
wxHaskell, i.e. wxHaskell doesn't need to be loaded during THs code 
generation. Then ghc --make works fine. But when using cabal, the same 
error occurs. 

It seems to me that TH (when used with cabal) loads all packages 
specified at Build-Depends in your cabal file (whether they are needed 
or not). ghc --make instead just loads all packages, that are really 
needed for THs code generation.

But this is just a workaround and does not explain why TH does not work 
with wxHaskell. I think this is somehow related to the inability to use 
wxHaskell inside of GHCi [1], because then the same error occurs.

[1] http://comments.gmane.org/
gmane.comp.lang.haskell.wxhaskell.general/923


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


[Haskell-cafe] Unknown symbol `__dso_handle' with Template Haskell and wxHaskell

2010-12-25 Thread Alexander Bau
Hi,

I am using Template Haskell and wxHaskell [1]. When Graphics.UI.WX is
loaded during THs code generation, I get the following error:

 ...
 Loading package wxdirect-0.12.1.3 ... linking ... done.
 ghc: /usr/local/lib/wxcore-0.12.1.6/ghc-6.12.3/HSwxcore-0.12.1.6.o:
 unknown symbol `__dso_handle' 
 Loading package wxcore-0.12.1.6 ...
 linking ... ghc: unable to load package `wxcore-0.12.1.6'

System stats:
ghc-6.12.3
template-haskell-2.4.0.1
wx-0.12.1.6

Regards,

Alex

[1] Example:

-- Test.hs --

{-# LANGUAGE TemplateHaskell #-}
module Test2 where

import Language.Haskell.TH
import qualified Graphics.UI.WX as WX

foo :: Q [Dec]
foo = do
  info - reify ''WX.Color
  runIO $ print info
  return []

-- Main.hs --

{-# LANGUAGE TemplateHaskell #-}
module Main where

import Test

$(foo)


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


[Haskell-cafe] Announce: lhae-0.0.3

2010-09-29 Thread Alexander Bau

lhae[1] is a spreadsheet program. It features a simple formula language 
and some basic statistical methods, like descriptive statistics and pivot
tables. 

0.0.2 - 0.0.3:
---

Improvements:
- Right click menu at columns/row headers and cells
- Insert rows/columns between exisiting rows/columns
- Boolean values
- New functions: ==,/=,,=,,=,not
- If-then-else expressions
- New constants: true,false,pi
- Filtering of columns/rows
- Relative references
- Copy formulas into multiple cells

Fixed bugs:
- Import from csv files
- Table updates when deleting/inserting rows/columns
- When closing tables: no more Want to save? queries on already saved  
tables

[1] http://hackage.haskell.org/package/lhae

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


Re: [Haskell-cafe] Haskell Users in Leipzig

2009-12-25 Thread Alexander Bau
 Perhaps you can ask on the Ocaml mailing list too.

Done.

 I know Standard ML,
 never wrote any big software in it due to the lack of libraries.

Yes, same problem here.

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


Re: [Haskell-cafe] Haskell Users in Leipzig

2009-12-24 Thread Alexander Bau
Hi,

On 12/24/2009 04:25 PM, Matthias-Christian Ott wrote:
 I just wanted to know whether there are any Haskell users and
 enthusiasts in the Leipzig area who are interested in meeting with
 other users

yes I'm interested.

 Users of other functional programming languages are of course also
welcome.

Nice, because I would like to meet some local Ocaml users as well.

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