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

Safe HaskellSafe-Infered

System.USB.IDDB.LinuxUsbIdRepo

Contents

Description

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

Synopsis

Parsing

parseDb :: String -> Maybe IDDBSource

Construct a database from a string in the format used by http://linux-usb.org.

Acquiring a database

staticDb :: IO IDDBSource

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

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

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

dbURL :: StringSource

http://linux-usb.org/usb.ids

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