usb-id-database-0.4.0.2: A database of USB identifiers

System.USB.IDDB.UsbDotOrg

Contents

Description

Functions to acquire a database from http://www.usb.org.

Synopsis

Parsing

parseDb :: String -> Maybe IDDBSource

Construct a database from a string in the format used by usb.org.

Acquiring a database

staticDb :: IO IDDBSource

Load a database from a snapshot of the usb.org database which is supplied with the package.

fromFile :: FilePath -> IO (Maybe IDDB)Source

Load a vendor database from file. If the file can not be read for some reason an error will be thrown.

dbURL :: StringSource

http://www.usb.org/developers/tools/comp_dump

The source of the database. Download this file for the most up-to-date version.