usb-id-database-0.3: A database of USB identifiersSource codeContentsIndex
System.USB.IDDB.UsbDotOrg
Synopsis
parseDb :: String -> Maybe IDDB
staticDb :: IO IDDB
fromFile :: FilePath -> IO (Maybe IDDB)
fromWeb :: IO (Maybe IDDB)
Documentation
parseDb :: String -> Maybe IDDBSource
Construct a database from a string in the format used by usb.org.
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.
fromWeb :: IO (Maybe IDDB)Source
Construct a database from the list of companies available at http://www.usb.org/developers/tools/comp_dump. The website informs us that: "Remember this list changes almost daily, be sure to get a fresh copy when you use the tools". However, the list seems to be quite stable. Using this function more than once a day is probably overkill.
Produced by Haddock version 2.4.2