WURFL: Convert the WURFL file into a Parsec parser

[ bsd3, deprecated, library, web ] [ Propose Tags ]

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]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1
Dependencies base, haskell98, parsec [details]
License BSD-3-Clause
Copyright Copyright (c) 2007, alpheccar
Author alpheccar
Maintainer misc@NOSPAMalpheccar.org
Category Web
Uploaded by alpheccar at 2007-09-30T19:22:01Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1201 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for WURFL-0.1

[back to package description]

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)

cd Test
make clean

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.