This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
-- | Wai+Warp file server. Used GHC 7.4, Wai 1.1, Warp 1.1 versions. | |
module Main where | |
import Network.Wai.Handler.Warp (run) | |
import Network.Wai.Application.Static | |
( StaticSettings(..) | |
, staticApp | |
, fileSystemLookup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
-- | Converts a matrix represented as text to Hmatrix Matrix. Used GHC 7.4, Hmatrix 0.14. | |
module Main where | |
import qualified Data.Text as T | |
import qualified Data.Text.IO as TIO | |
import Data.Text (Text,splitOn,lines) | |
import Data.Text.Read (double) | |
import Data.Packed.Matrix (Matrix,fromLists) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
-- | Hello world Wai+Warp applicaion server. Used GHC 7.4, Wai 1.1, Warp 1.1 versions. | |
module Main where | |
import Network.HTTP.Types (status200) | |
import Network.Wai (Application,responseLBS) | |
import Network.Wai.Handler.Warp (run) | |
-- | Hello word Wai application. |
NewerOlder