The WURFL package

[Tags: bsd3, deprecated, library]

Deprecated

The WURLF file format (http:wurfl.sourceforge.net/) is not well adapted to the parsing of the user agent strings. It is useful to manage a database of mobile features. The Convert module in this package (see test.hs) will convert the WURLF tree into another tree that can be used to generate a Parsec parser. The Parsec parser can then be used with WURFLParser to quickly parse an user agent string. The infos extracted from WURLF are defined in WURFLType (MD data type). Nothing is preventing the lib from taking into account much more information from the WURLF file. The conversion of wurlf.xml and compilation of the lib are very slow since the generated tree in WurflVar.h is a huge Haskell tree. But, once it is compiled, its use in another project should be easy. This module is very experimental.


[Skip to ReadMe]

Properties

Version0.1
Change logNone available
Dependenciesbase, haskell98, parsec [details]
LicenseBSD3
CopyrightCopyright (c) 2007, alpheccar
Authoralpheccar
Maintainermisc@NOSPAMalpheccar.org
CategoryWeb
UploadedSun Sep 30 19:22:01 UTC 2007 by alpheccar
DistributionsNixOS:0.1
Downloads258 total (8 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for WURFL-0.1

TO BUILD AND INSTALL THE LIBRARY
================================

ghc-pkg unregister WURFL-0.x if you already installed an older version.
ghc-pkg list to check which version is already installed.

runghc Setup.hs configure
runghc Setup.hs build
runghc Setup.hs haddock to generate again the HTML pages (optional - only if you have haddock installed)
runghc Setup.hs install (you may have to use sudo)
runghc Setup.hs clean (warning : will clean the HTML pages)

TO PARSE THE wurlf.xml FILE
============================
cd Test
make clean
make

it will overwrite the file WurflVar.h and you will have to rebuild the WURLF module to take into account the new 
version of the wurlf xml file.


The conversion tool is using HXT (was tested with version 7.1). So you need to install HXT first if you don't have it already.