SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

ghc-fn rpm build for : openSUSE Tumbleweed. For other distributions click ghc-fn.

Name : ghc-fn
Version : 0.3.0.2 Vendor : obs://build_opensuse_org/devel:languages:haskell
Release : 4.12 Date : 2018-07-11 23:11:26
Group : Development/Libraries/Haskell Source RPM : ghc-fn-0.3.0.2-4.12.src.rpm
Size : 0.23 MB
Packager : (none)
Summary : A functional web framework
Description :
A Haskell web framework where you write plain old functions.

/Provided you have/ < https://github.com/commercialhaskell/stack#readme stack>
/installed, you can run this example like a shell script (it\'ll listen on port
3000):/

\' #!/usr/bin/env stack -- stack --resolver lts-5.5 --install-ghc runghc
--package fn --package warp {-# LANGUAGE OverloadedStrings
#-} import Data.Monoid ((<>)) import Data.Text (Text) import
Network.Wai (Response) import Network.Wai.Handler.Warp (run) import Web.Fn

data Ctxt = Ctxt { _req :: FnRequest } instance RequestContext Ctxt
where getRequest = _req setRequest c r = c { _req = r }

initializer :: IO Ctxt initializer = return (Ctxt defaultFnRequest)

main :: IO () main = do ctxt < - initializer run 3000 $ toWAI ctxt site

site :: Ctxt -> IO Response site ctxt = route ctxt [ end ==> indexH ,
path "echo" // param "msg" ==> echoH , path
"echo" // segment ==> echoH ] `fallthrough` notFoundText
"Page not found."

indexH :: Ctxt -> IO (Maybe Response) indexH _ = okText "Try visiting
/echo?msg=\'hello\' or /echo/hello"

echoH :: Ctxt -> Text -> IO (Maybe Response) echoH _ msg = okText $
"Echoing \'" <> msg <> "\'." \'

Fn lets you write web code that just looks like normal Haskell code.

* An application has some \"context\", which must contain a \'Request\', but can
contain other data as well, like database connection pools, etc. This context
will be passed to each of your handlers, updated with the current HTTP Request.

* Routes are declared to capture parameters and/or segments of the url, and
then routed to handler functions that have the appropriate number and type of
arguments. These functions return \'IO (Maybe Response)\', where \'Nothing\'
indicates to Fn that you want it to keep looking for matching routes.

* All handlers just use plain old \'IO\', which means it is easy to call them
from GHCi, \'forkIO\', etc.

* All of this is a small wrapper around the WAI interface, so you have the
flexilibility to do anything you need to do with HTTP.

The name comes from the fact that Fn emphasizes functions (over monads), where
all necessary data is passed via function arguments, and control flow is
mediated by return values.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/haskell:/lts:/next/openSUSE_Tumbleweed/x86_64

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
ghc-fn
ghc-fn(x86-64)
libHSfn-0.3.0.2-Kg3B7yfAhEDJhIOkw83IdR-ghc8.4.3.so()(64bit)

Requires :
libHSaeson-1.4.0.0-5MIZAct1Yn73Zmup8jk6Ca-ghc8.4.3.so()(64bit)
libHSansi-terminal-0.8.0.4-JygoK7BZB5m4K6OxT2muhl-ghc8.4.3.so()(64bit)
libHSappar-0.1.4-J5mdtVuytVIKFPXD2MXW4E-ghc8.4.3.so()(64bit)
libHSarray-0.5.2.0-ghc8.4.3.so()(64bit)
libHSasync-2.2.1-1bsiEsDyYvD1Jx6uPPJyV0-ghc8.4.3.so()(64bit)
libHSattoparsec-0.13.2.2-LSyEfPWldu27rWubnW98cS-ghc8.4.3.so()(64bit)
libHSauto-update-0.1.4-7k5Okr80TfS9UGlvnbDZr0-ghc8.4.3.so()(64bit)
libHSbase-4.11.1.0-ghc8.4.3.so()(64bit)
libHSbase-compat-0.10.4-9FtFg9E90S5CFRyvxjUaaZ-ghc8.4.3.so()(64bit)
libHSbase-orphans-0.7-85wcea2rRmdArILlfYz5fz-ghc8.4.3.so()(64bit)
libHSbase64-bytestring-1.0.0.1-4OCIe2BZn8jKI191JIXI37-ghc8.4.3.so()(64bit)
libHSbinary-0.8.5.1-ghc8.4.3.so()(64bit)
libHSblaze-builder-0.4.1.0-Gz7BwSYlOrTDOutVN7e028-ghc8.4.3.so()(64bit)
libHSbyteorder-1.0.4-JGHrMy8StI888DOmmSVbRy-ghc8.4.3.so()(64bit)
libHSbytestring-0.10.8.2-ghc8.4.3.so()(64bit)
libHScase-insensitive-1.2.0.11-LO6zJz9aRiEEtPUvQyaZDw-ghc8.4.3.so()(64bit)
libHScolour-2.3.4-C3PVIHDZkyCIpOJGl3M0hE-ghc8.4.3.so()(64bit)
libHScontainers-0.5.11.0-ghc8.4.3.so()(64bit)
libHScookie-0.4.4-J7voMT3UqhIHsi2WXOCT1n-ghc8.4.3.so()(64bit)
libHSdata-default-class-0.1.2.0-2kYzERBLX3wJoPfj7mwVvW-ghc8.4.3.so()(64bit)
libHSdeepseq-1.4.3.0-ghc8.4.3.so()(64bit)
libHSdirectory-1.3.1.5-ghc8.4.3.so()(64bit)
libHSdlist-0.8.0.4-EWVGGTJvTTW8quLYK9yz9r-ghc8.4.3.so()(64bit)
libHSeasy-file-0.2.2-4l2xgq1xN4PHgDPMu188oI-ghc8.4.3.so()(64bit)
libHSexceptions-0.10.0-AVSDKbmH3Lu5hW6xKPipBD-ghc8.4.3.so()(64bit)
libHSfast-logger-2.4.11-AXpCz9z0MQ8Ajcrb19zwrQ-ghc8.4.3.so()(64bit)
libHSfilepath-1.4.2-ghc8.4.3.so()(64bit)
libHSghc-boot-th-8.4.3-ghc8.4.3.so()(64bit)
libHSghc-prim-0.5.2.0-ghc8.4.3.so()(64bit)
libHShashable-1.2.7.0-8MkquYouWwiLIw3HmVGSkN-ghc8.4.3.so()(64bit)
libHShttp-types-0.12.1-BKZRa2SYg2x5w71yPJ9a6h-ghc8.4.3.so()(64bit)
libHSinteger-gmp-1.0.2.0-ghc8.4.3.so()(64bit)
libHSinteger-logarithms-1.0.2.1-KTtq4CBpjpvEUZ9qRz5Dnw-ghc8.4.3.so()(64bit)
libHSiproute-1.7.5-D8iHzRBaRYY79Y9PxHNK50-ghc8.4.3.so()(64bit)
libHSlifted-base-0.2.3.12-8oNRiOXKPA8DfZnRh6i3qM-ghc8.4.3.so()(64bit)
libHSmonad-control-1.0.2.3-EeeHqvyhcVXLIEZuTOhIR1-ghc8.4.3.so()(64bit)
libHSmtl-2.2.2-ghc8.4.3.so()(64bit)
libHSnetwork-2.6.3.6-2g6VId0Xlc85XRtUcfQj0T-ghc8.4.3.so()(64bit)
libHSold-locale-1.0.0.7-26K7wLFR2jK44UeOklvTCh-ghc8.4.3.so()(64bit)
libHSold-time-1.1.0.3-2H7uVRdRD4GDRLoYt56mwc-ghc8.4.3.so()(64bit)
libHSpretty-1.1.3.6-ghc8.4.3.so()(64bit)
libHSprimitive-0.6.4.0-39Pwmm1zkQX6bM7xFUT3Jc-ghc8.4.3.so()(64bit)
libHSprocess-1.6.3.0-ghc8.4.3.so()(64bit)
libHSrandom-1.1-9LLJAJa4iQFLJiLXBOBXBV-ghc8.4.3.so()(64bit)
libHSresourcet-1.2.1-8wJr0zkqlMmJDALBvFT97o-ghc8.4.3.so()(64bit)
libHSscientific-0.3.6.2-2h5PMUpgu6m7FAikNGNQhB-ghc8.4.3.so()(64bit)
libHSsemigroups-0.18.5-E4FVMc5VZAG98u64romz5-ghc8.4.3.so()(64bit)
libHSstm-2.4.5.0-ghc8.4.3.so()(64bit)
libHSstreaming-commons-0.2.1.0-5P6MCU1YyWyFAttn5zFoQE-ghc8.4.3.so()(64bit)
libHSstringsearch-0.3.6.6-6DZU68MAKlcJFBtzhQCsgS-ghc8.4.3.so()(64bit)
libHStagged-0.8.6-BztYjsXOhuvLBoCBCdmM5I-ghc8.4.3.so()(64bit)
libHStemplate-haskell-2.13.0.0-ghc8.4.3.so()(64bit)
libHStext-1.2.3.0-ghc8.4.3.so()(64bit)
libHSth-abstraction-0.2.8.0-Ct896m4STpK8GA15Cl5y88-ghc8.4.3.so()(64bit)
libHStime-1.8.0.2-ghc8.4.3.so()(64bit)
libHStime-locale-compat-0.1.1.4-BGKIX6yWQCyIRnAQg4xT4Q-ghc8.4.3.so()(64bit)
libHStransformers-0.5.5.0-ghc8.4.3.so()(64bit)
libHStransformers-base-0.4.5.2-H2qElSkkJsv7uyyMMnVYVF-ghc8.4.3.so()(64bit)
libHStransformers-compat-0.6.2-EZ0ZvADLUlc4V8RuKaJX5W-ghc8.4.3.so()(64bit)
libHSunix-2.7.2.2-ghc8.4.3.so()(64bit)
libHSunix-compat-0.5.0.1-EHbnKrAgBdbLiFhZ6tM1y-ghc8.4.3.so()(64bit)
libHSunix-time-0.3.8-CeBUuPW6VHK2F77gPXyawL-ghc8.4.3.so()(64bit)
libHSunliftio-core-0.1.1.0-LMRC2BJekXQHTjQ89kypYp-ghc8.4.3.so()(64bit)
libHSunordered-containers-0.2.9.0-IkfpzvG0LzrHAbTzfMidvY-ghc8.4.3.so()(64bit)
libHSuuid-types-1.0.3-4LRfqenFxnCEAfzmPjwN1Z-ghc8.4.3.so()(64bit)
libHSvault-0.3.1.1-88hiIVZMqPqIbPQOEMyjqo-ghc8.4.3.so()(64bit)
libHSvector-0.12.0.1-1fezwShzdEfG3Hp1Pmvjkq-ghc8.4.3.so()(64bit)
libHSvoid-0.7.2-AeUlTizrscF7IT5YtjodSF-ghc8.4.3.so()(64bit)
libHSwai-3.2.1.2-4BYcZjD1a4nGr9F186zVuK-ghc8.4.3.so()(64bit)
libHSwai-extra-3.0.22.1-8wU03UJkmKeJoVeST1BHHZ-ghc8.4.3.so()(64bit)
libHSwai-logger-2.3.2-6bbX2YcRwUh47nmWJvJ8sa-ghc8.4.3.so()(64bit)
libHSword8-0.1.3-Psnh2l3FAaIFxTGKIJTuU-ghc8.4.3.so()(64bit)
libHSzlib-0.6.2-FP80mWgJNoyCiVcPtw6kKj-ghc8.4.3.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libdl.so.2()(64bit)
libgmp.so.10()(64bit)
libm.so.6()(64bit)
libpthread.so.0()(64bit)
librt.so.1()(64bit)
libutil.so.1()(64bit)
libz.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib64/ghc-8.4.3/fn-0.3.0.2-Kg3B7yfAhEDJhIOkw83IdR
/usr/lib64/ghc-8.4.3/fn-0.3.0.2-Kg3B7yfAhEDJhIOkw83IdR/libHSfn-0.3.0.2-Kg3B7yfAhEDJhIOkw83IdR-ghc8.4.3.so
/usr/share/licenses/ghc-fn
/usr/share/licenses/ghc-fn/LICENSE

 
ICM