The WURFL package

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

The WURLF file format (http:/ 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]


Versions 0.1
Dependencies base, haskell98, parsec [details]
License BSD3
Copyright Copyright (c) 2007, alpheccar
Author alpheccar
Category Web
Uploaded Sun Sep 30 19:22:01 UTC 2007 by alpheccar
Distributions NixOS:0.1
Downloads 420 total (5 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

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.