Re: [Haskell-cafe] twitter election on favorite programming language

2012-05-03 Thread Alexander Danilov

01.05.2012 08:11, Kazu Yamamoto (山本和彦) пишет:

Hello,

A twitter election on favorite programming language was held in Japan
and it appeared that Heskell is No. 10 loved language in Japan. :-)

http://twisen.com/election/index/654

Regards,

--Kazu




favourite = (1 / frequently used), unfortunately.

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


Re: [Haskell-cafe] HDBC SQLite error

2011-11-01 Thread Alexander Danilov

01.11.2011 20:30, Jurriën Stutterheim пишет:

Hi all,


I have recently switched one of my web applications to SQLite via HDBC. I use 
it to store some user credentials and data. Initially it seemed to work fine, 
until I tried logging in from two different browsers. That's when I got the 
following error when trying to log in:

SqlError {seState = "", seNativeError = 5, seErrorMsg = "step: database is 
locked"}

My application only uses two functions (query and query', see [1]) directly, 
and the authentication code[2] uses HDBC directly. I'm not sure why I'm getting 
this error, because as far as I can see, I'm not keeping any transactions open 
longer than I have to in the auth code. Does anyone have an idea what might be 
wrong and how to fix it?


Cheers,




This is a problem of hdbc-sqlite package, author think, than it can't work correctly without open 
transaction, so just commit after open database or modify hdbc-sqlite like this:


--- a/Database/HDBC/Sqlite3/Connection.hs
+++ b/Database/HDBC/Sqlite3/Connection.hs
@@ -75,7 +75,7 @@ genericConnect strAsCStrFunc fp =
 mkConn :: FilePath -> Sqlite3 -> IO Impl.Connection
 mkConn fp obj =
 do children <- newMVar []
-   begin_transaction obj children
+--   begin_transaction obj children
ver <- (sqlite3_libversion >>= peekCString)
return $ Impl.Connection {
 Impl.disconnect = fdisconnect obj children,


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


Re: [Haskell-cafe] Haskell IDE

2011-03-03 Thread Alexander Danilov

03.03.2011 16:05, Hauschild, Klaus (EXT) пишет:

Hi Haskellers,
whats your Haskell IDE of choise? Currently I use leksah. Is the
EclipseFP Plugin for Eclipse a real alternative?
Thanks
Klaus




Emacs, look at haskell wiki for details about haskell-mode.


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


Re: [Haskell-cafe] Terminal library : which ?

2011-03-03 Thread Alexander Danilov

25.02.2011 03:36, Permjacov Evgeniy пишет:

What terminal library you will recomedn?
Requirements: crossplatform (win/lin), with direct (i.e. with
line/column number pair) cursor positioning and possybly direct symbol
output. MUST provide function to get terminal dimensions. (could not
find one).



ncurses(linux)/pdcurses(dos/windows), there are some packages in cabal database,
but I didn't try.


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