    {-# LANGUAGE DeriveDataTypeable #-}

    -- | Module for accessing minified flot code (<http://www.flotcharts.org/>).
    --   As an example:
    --
    -- > import qualified Language.Javascript.Flot as Flot
    -- >
    -- > main = do
    -- >     putStrLn $ "Flot version " ++ show Flot.version ++ " source:"
    -- >     putStrLn =<< readFile =<< Flot.file Flot.Flot
    module Language.Javascript.Flot(
        Flot(..), version, file
        ) where

    import qualified Paths_js_flot as Paths
    import Data.Version
    import Data.Data
    import Data.Char

    -- | The Flot code to obtain. Use 'Flot' for the base system and the other values
    --   for the various addins shipped with Flot.
    data Flot
        = Flot
        | FlotCanvas
        | FlotCategories
        | FlotCrosshair
        | FlotErrorbars
        | FlotFillbetween
        | FlotImage
        | FlotNavigate
        | FlotPie
        | FlotResize
        | FlotSelection
        | FlotStack
        | FlotSymbol
        | FlotThreshold
        | FlotTime
        deriving (Flot -> Flot -> Bool
    (Flot -> Flot -> Bool) -> (Flot -> Flot -> Bool) -> Eq Flot
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: Flot -> Flot -> Bool
    == :: Flot -> Flot -> Bool
    $c/= :: Flot -> Flot -> Bool
    /= :: Flot -> Flot -> Bool
    Eq,Eq Flot
    Eq Flot =>
    (Flot -> Flot -> Ordering)
    -> (Flot -> Flot -> Bool)
    -> (Flot -> Flot -> Bool)
    -> (Flot -> Flot -> Bool)
    -> (Flot -> Flot -> Bool)
    -> (Flot -> Flot -> Flot)
    -> (Flot -> Flot -> Flot)
    -> Ord Flot
    Flot -> Flot -> Bool
    Flot -> Flot -> Ordering
    Flot -> Flot -> Flot
    forall a.
    Eq a =>
    (a -> a -> Ordering)
    -> (a -> a -> Bool)
    -> (a -> a -> Bool)
    -> (a -> a -> Bool)
    -> (a -> a -> Bool)
    -> (a -> a -> a)
    -> (a -> a -> a)
    -> Ord a
    $ccompare :: Flot -> Flot -> Ordering
    compare :: Flot -> Flot -> Ordering
    $c< :: Flot -> Flot -> Bool
    < :: Flot -> Flot -> Bool
    $c<= :: Flot -> Flot -> Bool
    <= :: Flot -> Flot -> Bool
    $c> :: Flot -> Flot -> Bool
    > :: Flot -> Flot -> Bool
    $c>= :: Flot -> Flot -> Bool
    >= :: Flot -> Flot -> Bool
    $cmax :: Flot -> Flot -> Flot
    max :: Flot -> Flot -> Flot
    $cmin :: Flot -> Flot -> Flot
    min :: Flot -> Flot -> Flot
    Ord,Int -> Flot -> ShowS
    [Flot] -> ShowS
    Flot -> String
    (Int -> Flot -> ShowS)
    -> (Flot -> String) -> ([Flot] -> ShowS) -> Show Flot
    forall a.
    (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
    $cshowsPrec :: Int -> Flot -> ShowS
    showsPrec :: Int -> Flot -> ShowS
    $cshow :: Flot -> String
    show :: Flot -> String
    $cshowList :: [Flot] -> ShowS
    showList :: [Flot] -> ShowS
    Show,ReadPrec [Flot]
    ReadPrec Flot
    Int -> ReadS Flot
    ReadS [Flot]
    (Int -> ReadS Flot)
    -> ReadS [Flot] -> ReadPrec Flot -> ReadPrec [Flot] -> Read Flot
    forall a.
    (Int -> ReadS a)
    -> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
    $creadsPrec :: Int -> ReadS Flot
    readsPrec :: Int -> ReadS Flot
    $creadList :: ReadS [Flot]
    readList :: ReadS [Flot]
    $creadPrec :: ReadPrec Flot
    readPrec :: ReadPrec Flot
    $creadListPrec :: ReadPrec [Flot]
    readListPrec :: ReadPrec [Flot]
    Read,Flot
    Flot -> Flot -> Bounded Flot
    forall a. a -> a -> Bounded a
    $cminBound :: Flot
    minBound :: Flot
    $cmaxBound :: Flot
    maxBound :: Flot
    Bounded,Int -> Flot
    Flot -> Int
    Flot -> [Flot]
    Flot -> Flot
    Flot -> Flot -> [Flot]
    Flot -> Flot -> Flot -> [Flot]
    (Flot -> Flot)
    -> (Flot -> Flot)
    -> (Int -> Flot)
    -> (Flot -> Int)
    -> (Flot -> [Flot])
    -> (Flot -> Flot -> [Flot])
    -> (Flot -> Flot -> [Flot])
    -> (Flot -> Flot -> Flot -> [Flot])
    -> Enum Flot
    forall a.
    (a -> a)
    -> (a -> a)
    -> (Int -> a)
    -> (a -> Int)
    -> (a -> [a])
    -> (a -> a -> [a])
    -> (a -> a -> [a])
    -> (a -> a -> a -> [a])
    -> Enum a
    $csucc :: Flot -> Flot
    succ :: Flot -> Flot
    $cpred :: Flot -> Flot
    pred :: Flot -> Flot
    $ctoEnum :: Int -> Flot
    toEnum :: Int -> Flot
    $cfromEnum :: Flot -> Int
    fromEnum :: Flot -> Int
    $cenumFrom :: Flot -> [Flot]
    enumFrom :: Flot -> [Flot]
    $cenumFromThen :: Flot -> Flot -> [Flot]
    enumFromThen :: Flot -> Flot -> [Flot]
    $cenumFromTo :: Flot -> Flot -> [Flot]
    enumFromTo :: Flot -> Flot -> [Flot]
    $cenumFromThenTo :: Flot -> Flot -> Flot -> [Flot]
    enumFromThenTo :: Flot -> Flot -> Flot -> [Flot]
    Enum,Typeable Flot
    Typeable Flot =>
    (forall (c :: * -> *).
     (forall d b. Data d => c (d -> b) -> d -> c b)
     -> (forall g. g -> c g) -> Flot -> c Flot)
    -> (forall (c :: * -> *).
        (forall b r. Data b => c (b -> r) -> c r)
        -> (forall r. r -> c r) -> Constr -> c Flot)
    -> (Flot -> Constr)
    -> (Flot -> DataType)
    -> (forall (t :: * -> *) (c :: * -> *).
        Typeable t =>
        (forall d. Data d => c (t d)) -> Maybe (c Flot))
    -> (forall (t :: * -> * -> *) (c :: * -> *).
        Typeable t =>
        (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Flot))
    -> ((forall b. Data b => b -> b) -> Flot -> Flot)
    -> (forall r r'.
        (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r)
    -> (forall r r'.
        (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r)
    -> (forall u. (forall d. Data d => d -> u) -> Flot -> [u])
    -> (forall u. Int -> (forall d. Data d => d -> u) -> Flot -> u)
    -> (forall (m :: * -> *).
        Monad m =>
        (forall d. Data d => d -> m d) -> Flot -> m Flot)
    -> (forall (m :: * -> *).
        MonadPlus m =>
        (forall d. Data d => d -> m d) -> Flot -> m Flot)
    -> (forall (m :: * -> *).
        MonadPlus m =>
        (forall d. Data d => d -> m d) -> Flot -> m Flot)
    -> Data Flot
    Flot -> Constr
    Flot -> DataType
    (forall b. Data b => b -> b) -> Flot -> Flot
    forall a.
    Typeable a =>
    (forall (c :: * -> *).
     (forall d b. Data d => c (d -> b) -> d -> c b)
     -> (forall g. g -> c g) -> a -> c a)
    -> (forall (c :: * -> *).
        (forall b r. Data b => c (b -> r) -> c r)
        -> (forall r. r -> c r) -> Constr -> c a)
    -> (a -> Constr)
    -> (a -> DataType)
    -> (forall (t :: * -> *) (c :: * -> *).
        Typeable t =>
        (forall d. Data d => c (t d)) -> Maybe (c a))
    -> (forall (t :: * -> * -> *) (c :: * -> *).
        Typeable t =>
        (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
    -> ((forall b. Data b => b -> b) -> a -> a)
    -> (forall r r'.
        (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
    -> (forall r r'.
        (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
    -> (forall u. (forall d. Data d => d -> u) -> a -> [u])
    -> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
    -> (forall (m :: * -> *).
        Monad m =>
        (forall d. Data d => d -> m d) -> a -> m a)
    -> (forall (m :: * -> *).
        MonadPlus m =>
        (forall d. Data d => d -> m d) -> a -> m a)
    -> (forall (m :: * -> *).
        MonadPlus m =>
        (forall d. Data d => d -> m d) -> a -> m a)
    -> Data a
    forall u. Int -> (forall d. Data d => d -> u) -> Flot -> u
    forall u. (forall d. Data d => d -> u) -> Flot -> [u]
    forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Flot
    forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> Flot -> c Flot
    forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Flot)
    forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Flot)
    $cgfoldl :: forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> Flot -> c Flot
    gfoldl :: forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> Flot -> c Flot
    $cgunfold :: forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Flot
    gunfold :: forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Flot
    $ctoConstr :: Flot -> Constr
    toConstr :: Flot -> Constr
    $cdataTypeOf :: Flot -> DataType
    dataTypeOf :: Flot -> DataType
    $cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Flot)
    dataCast1 :: forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Flot)
    $cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Flot)
    dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Flot)
    $cgmapT :: (forall b. Data b => b -> b) -> Flot -> Flot
    gmapT :: (forall b. Data b => b -> b) -> Flot -> Flot
    $cgmapQl :: forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    gmapQl :: forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    $cgmapQr :: forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    gmapQr :: forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Flot -> r
    $cgmapQ :: forall u. (forall d. Data d => d -> u) -> Flot -> [u]
    gmapQ :: forall u. (forall d. Data d => d -> u) -> Flot -> [u]
    $cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Flot -> u
    gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Flot -> u
    $cgmapM :: forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    gmapM :: forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    $cgmapMp :: forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    gmapMp :: forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    $cgmapMo :: forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    gmapMo :: forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Flot -> m Flot
    Data,Typeable)

    -- | A local file containing the minified Flot code for 'version'.
    file :: Flot -> IO FilePath
    file :: Flot -> IO String
    file = String -> IO String
    Paths.getDataFileName (String -> IO String) -> (Flot -> String) -> Flot -> IO String
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . Flot -> String
    name

    name :: Flot -> String
    name Flot
    Flot = String
    "jquery.flot.min.js"
    name Flot
    x = String
    "jquery.flot." String -> ShowS
    forall a. [a] -> [a] -> [a]
    ++ (Char -> Char) -> ShowS
    forall a b. (a -> b) -> [a] -> [b]
    map Char -> Char
    toLower (Int -> ShowS
    forall a. Int -> [a] -> [a]
    drop Int
    4 ShowS -> ShowS
    forall a b. (a -> b) -> a -> b
    $ Flot -> String
    forall a. Show a => a -> String
    show Flot
    x) String -> ShowS
    forall a. [a] -> [a] -> [a]
    ++ String
    ".min.js"

    -- | The version of Flot provided by this package. Not necessarily the version of this package,
    --   but the versions will match in the first three digits.
    version :: Version
    version :: Version
    version = [Int] -> [String] -> Version
    Version (Int -> [Int] -> [Int]
    forall a. Int -> [a] -> [a]
    take Int
    3 ([Int] -> [Int]) -> [Int] -> [Int]
    forall a b. (a -> b) -> a -> b
    $ Version -> [Int]
    versionBranch Version
    Paths.version) []