Hello there,
There's an odd error every time I try to run this code:
import Network.CGI
import Text.XHtml
import qualified Text.Html as H
import Database.HDBC
import Database.HDBC.Sqlite3
import System.Random
...
sqlReaderIO = do
handle - connectSqlite3 table2.db
scoresSql -
How does one change the font and size of text in a cells in a simpleTable?
As in, to change the height, one could state:
x = simpleTable [] [height 5] exampleTable
Thanks,
Will
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Hi all,
I tried to install the Network.CGI module by inputting:
cabal install CGI
into the terminal but got this error:
Resolving dependencies...
Configuring cgi-3001.1.8.2...
Preprocessing library cgi-3001.1.8.2...
Building cgi-3001.1.8.2...
command line: cannot satisfy -package-id
Hi All,
I've spent a lot of time trying to write a version of concat, which
concatenates lists of any depth:
So:
concat'' [[[1,2],[3,4]],[[5]]] would return: [1,2,3,4,5]
The code is:
concat'' :: [a] - [b]
concat'' ((y:ys):xs) = (concat'' (y:ys)) ++ (concat'' xs)
concat'' []
We were trying to make an addition function that, unlike the library one,
could add numbers of different types from the typeclass 'Num.' We originally
ran into a problem when trying to add (5 :: Integer) + 4.8, and were trying
to define a new function that would be able to get that:
(+') :: (Num