debian/0000755000000000000000000000000012246106573007174 5ustar debian/watch0000644000000000000000000000032312207704253010217 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|HGL-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/HGL \ ([\d\.]*\d)/ debian/rules0000755000000000000000000000022212207704252010243 0ustar #!/usr/bin/make -f DEB_BUILD_DEPENDENCIES = build-arch include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk debian/copyright0000644000000000000000000000434712210023021011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: hgl Upstream-Contact: Christoph Lueth Source: http://hackage.haskell.org/packages/archive/HGL/ Files: * Copyright: 1996-2003, Alastair Reid License: BSD-like The Haskell Graphics Library is Copyright (c) Alastair Reid, 1996-2003, All rights reserved, and is distributed as free software under the following license. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Neither name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2006, Ian Lynagh Kari Pahula 2013, Ernesto Hernández-Novich (USB) License: GPL-3+ License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3' All rights reserved. debian/libghc-hgl-doc.lintian-overrides0000644000000000000000000000011412207704251015305 0ustar # HGL doesn't ship a changelog libghc-hgl-doc binary: no-upstream-changelog debian/libghc-hgl-dev.lintian-overrides0000644000000000000000000000011412207704251015316 0ustar # HGL doesn't ship a changelog libghc-hgl-dev binary: no-upstream-changelog debian/source/0000755000000000000000000000000012207704253010470 5ustar debian/source/format0000644000000000000000000000001412207704253011676 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012207704252010616 5ustar debian/patches/02-exceptions.patch0000644000000000000000000000404012207704252014235 0ustar Description: Convert old-style try/catch to new-style Control.Exception style. This gets rids of several compilation warnings. Forwarded: yes Author: Ernesto Hernández-Novich --- a/Graphics/HGL/X11/Display.hs +++ b/Graphics/HGL/X11/Display.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE ScopedTypeVariables #-} + -- #hide module Graphics.HGL.X11.Display ( getDisplayName @@ -14,12 +16,13 @@ import Control.Monad (when) import Data.Maybe (isJust) import System.Environment (getEnv) -import System.IO.Error (try) import System.IO.Unsafe (unsafePerformIO) +import qualified Control.Exception as CE + getDisplayName :: IO String getDisplayName = do - disp <- try (getEnv "DISPLAY") + disp <- CE.try (getEnv "DISPLAY") :: IO (Either CE.IOException String) return (either (const ":0.0") id disp) displayRef :: MVar (Maybe X.Display) @@ -32,8 +35,9 @@ openDisplay' where openDisplay' = do - display <- X.openDisplay host `catch` \ err -> - ioError (userError ("Unable to open X display " ++ host)) + display <- X.openDisplay host + `CE.catch` + (\(e :: CE.SomeException) -> ioError $ userError $ "Unable to open X display " ++ host) modMVar displayRef (const $ Just display) return display --- a/Graphics/HGL/X11/Types.hs +++ b/Graphics/HGL/X11/Types.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE ScopedTypeVariables #-} ----------------------------------------------------------------------------- -- | -- Module : Graphics.HGL.X11.Types @@ -26,6 +27,7 @@ import Graphics.HGL.Internals.Types import qualified Graphics.X11.Xlib as X +import qualified Control.Exception as CE import Control.Concurrent.MVar (MVar) import Data.Bits @@ -84,7 +86,7 @@ (X.Color p _ _ _ _) <- X.allocColor display color_map (X.Color 0 r g b xcolor_flags) return p) - `catch` \ err -> + `CE.catch` \(err :: CE.SomeException) -> print err >> return 0 -- ioError (userError ("Error: " ++ show err -- ++ "\nUnable to allocate colo[u]r " ++ show (r,g,b) debian/patches/01-new-exceptions.patch0000644000000000000000000000200512207704252015022 0ustar Description: Convert old-style try/catch to new-style Control.Exception style. This gets rids of several compilation warnings. I left this patch separate because I removed an #ifdef and am not sure if this is the best way to solve the issue. Forwarded: yes Author: Ernesto Hernández-Novich --- a/Graphics/HGL/Internals/Utilities.hs +++ b/Graphics/HGL/Internals/Utilities.hs @@ -20,7 +20,7 @@ modMVar, modMVar_ ) where -import qualified Control.Exception as E (bracket, try, IOException, tryJust, ioErrors) +import qualified Control.Exception as E (bracket, try, IOException, tryJust) import Control.Concurrent( MVar, takeMVar, putMVar ) bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c @@ -32,14 +32,7 @@ type Exception = E.IOException safeTry :: IO a -> IO (Either Exception a) - -#if __GLASGOW_HASKELL >= 610 --- ghc-6.10 safeTry = E.try -#else --- ghc 6.8 (and below?) -safeTry = E.tryJust E.ioErrors -#endif ---------------------------------------------------------------- debian/patches/03-channel.patch0000644000000000000000000000323412207704252013471 0ustar Description: Stop using Control.Concurrent.Chan and migrate to the more modern Control.Concurrent.STM.TChan. Migration was triggered by the fact that the library needs isEmptyChan and GHC 7.4 suggest using STM's version instead. Forwarded: yes Author: Ernesto Hernández-Novich (USB) --- a/Graphics/HGL/Internals/Events.hs +++ b/Graphics/HGL/Internals/Events.hs @@ -20,7 +20,8 @@ import Graphics.HGL.Internals.Event import Graphics.HGL.Internals.Flag -import Control.Concurrent.Chan(Chan, newChan, readChan, writeChan, isEmptyChan) +import Control.Concurrent.STM (atomically) +import Control.Concurrent.STM.TChan (TChan, newTChan, readTChan, writeTChan, isEmptyTChan) ---------------------------------------------------------------- -- Interface @@ -37,7 +38,7 @@ -- of the Graphics library). Exposure events in X11 behave in a -- similar way except that they do not overtake other events.) -data Events = Events { events :: Chan Event +data Events = Events { events :: TChan Event , tick :: Flag () } @@ -53,13 +54,13 @@ ---------------------------------------------------------------- newEvents = do - events <- newChan + events <- atomically $ newTChan tick <- newFlag return (Events { events=events, tick=tick }) -getEvent evs = readChan (events evs) -isNoEvent evs = isEmptyChan (events evs) -sendEvent evs = writeChan (events evs) +getEvent evs = atomically $ readTChan (events evs) +isNoEvent evs = atomically $ isEmptyTChan (events evs) +sendEvent evs = atomically . writeTChan (events evs) sendTick evs = setFlag (tick evs) () getTick evs = resetFlag (tick evs) debian/patches/series0000644000000000000000000000012212207704252012026 0ustar 00-cabal-rules.patch 01-new-exceptions.patch 02-exceptions.patch 03-channel.patch debian/patches/00-cabal-rules.patch0000644000000000000000000000060312207704251014244 0ustar Description: Change cabal file to include proper dependencies for building with GHC 7.4. Forwarded: yes Author: Ernesto Hernández-Novich (USB) --- a/HGL.cabal +++ b/HGL.cabal @@ -22,7 +22,7 @@ library if flag(split-base) - build-depends: base >= 3 && < 4, array + build-depends: base >= 3, array, stm else build-depends: base < 2 exposed-modules: debian/compat0000644000000000000000000000000212207704250010363 0ustar 9 debian/control0000644000000000000000000000566412207704250010603 0ustar Source: haskell-hgl Section: haskell Priority: extra Maintainer: Debian Haskell Group Uploaders: Joachim Breitner , Ernesto Hernández-Novich (USB) Standards-Version: 3.9.4 Build-Depends: cdbs, debhelper (>= 9), haskell-devscripts (>= 0.8.12), quilt, ghc, ghc-prof, libghc-stm-dev, libghc-stm-prof, libghc-x11-dev, libghc-x11-prof Build-Depends-Indep: ghc-doc, libghc-stm-doc, libghc-x11-doc Homepage: http://hackage.haskell.org/package/HGL Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hgl Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hgl Package: libghc-hgl-dev Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: Haskell graphics library for GHC This package provides a library for the Haskell programming language. . This is a simple graphics library, designed to give the programmer access to most interesting parts of the Win32 Graphics Device Interface and X11 library without exposing the programmer to the pain and anguish usually associated with using these interfaces. . The library also includes a module Graphics.SOE providing the interface used in "The Haskell School of Expression", by Paul Hudak, cf . Package: libghc-hgl-prof Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: Haskell graphics library for GHC; profiling libraries This package provides a library for the Haskell programming language, compiled for profiling. . This is a simple graphics library, designed to give the programmer access to most interesting parts of the Win32 Graphics Device Interface and X11 library without exposing the programmer to the pain and anguish usually associated with using these interfaces. . The library also includes a module Graphics.SOE providing the interface used in "The Haskell School of Expression", by Paul Hudak, cf . Package: libghc-hgl-doc Section: doc Architecture: all Depends: ${haskell:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Description: Haskell graphics library for GHC; documentation This package provides the documentation for a library for the Haskell programming language. . This is a simple graphics library, designed to give the programmer access to most interesting parts of the Win32 Graphics Device Interface and X11 library without exposing the programmer to the pain and anguish usually associated with using these interfaces. . The library also includes a module Graphics.SOE providing the interface used in "The Haskell School of Expression", by Paul Hudak, cf . debian/changelog0000644000000000000000000001425612246106573011056 0ustar haskell-hgl (3.2.0.2-2build1) trusty; urgency=low * Rebuild for new GHC ABIs. -- Colin Watson Fri, 29 Nov 2013 12:50:03 +0000 haskell-hgl (3.2.0.2-2) unstable; urgency=low [ Marco Túlio Gontijo e Silva ] * debian/control: Use more sintetic link in Homepage:. * debian/source/format: Use 3.0 (quilt). [ Marco Silva ] * Use ghc instead of ghc6 [ Ernesto Hernández-Novich (USB) ] * Added patches to migrate to the new Control.Exception try/catch, use STM instead of regular Channels, and adjust cabal file to allow building with GHC 7.4. Patches have been forwarded upstream. * debian/control: bump Standards-Version. * debian/control: add Build-Depends on quilt to handle patches. * debian/control: add Build-Depends on ghc-stm-{dev|prof}. * debian/control: add Build-Depends-Indep on ghc-stm-doc. * Add lintian overrides because the distribution doesn't provide a changelog file. -- Ernesto Hernández-Novich (USB) Sun, 25 Aug 2013 13:01:03 -0430 haskell-hgl (3.2.0.2-1) unstable; urgency=low [ Marco Túlio Gontijo e Silva ] * debian/control: Change Priority: to extra. * debian/watch: Use format that works for --download-current-version. * debian/watch: Add .tar.gz to downloaded filename. * debian/watch: Include package name in downloaded .tar.gz. * debian/watch: Remove spaces, since they're not allowed by uscan. * debian/control: Add field Provides: ${haskell:Provides} to -dev and -prof packages. * debian/control: Add Vcs-Darcs: field. * debian/control: Add Homepage: field. * debian/control: Use Vcs-Browser: field. * debian/control: Remove dependency in hscolour, since it's now a dependency of haskell-devscripts. * debian/control: Remove haddock from Build-Depends:, since it's now a Depends: of haskell-devscripts. * debian/control: Bump Standards-Version: to 3.8.4, no changes needed. [ Joachim Breitner ] * New upstream version -- Joachim Breitner Thu, 11 Feb 2010 22:10:10 +0100 haskell-hgl (3.2.0.0-5) unstable; urgency=low * Adopt for the Debian Haskell Group * Bump standards version -- Joachim Breitner Mon, 26 Oct 2009 19:24:17 +0100 haskell-hgl (3.2.0.0-4) unstable; urgency=low * New maintainer. * Switched over to use hlibrary.mk and haskell-devscripts. -- Kari Pahula Wed, 04 Mar 2009 22:21:49 +0200 haskell-hgl (3.2.0.0-3) unstable; urgency=low * Build against libghc6-x11-dev 1.4.2-1. -- Ian Lynagh (wibble) Thu, 24 Jul 2008 14:55:49 +0000 haskell-hgl (3.2.0.0-2) unstable; urgency=low * Upgrade to "Generic Haskell cabal library packaging files v10": * Versioned dependencies are now generated for the Cabal packages we depend on. * Use the new ${impl:ghc6:*_deps} variables in debian/control.in. * Call canonicalise-comma-list on the depends and suggests fields in control.in. This works around bugs in lintian, where it gets confused and starts giving spurious warnings. -- Ian Lynagh (wibble) Thu, 28 Feb 2008 01:01:42 +0000 haskell-hgl (3.2.0.0-1) unstable; urgency=low * New upstream version. * Upgrade to "Generic Haskell cabal library packaging files v9": * Allows Setup to be in Setup.lhs instead of Setup.hs. * Bump the required haskell-utils from 1.8 to 1.10. * The control.in gives a standards-version of 3.7.3 (was 3.7.2). * Move everything from the devel section to the libdevel section. * Delete the LICENSE file (currently we assume it has that name, and that it exists) after "Setup copy"ing the Cabal package. * Remove some hacks that worked around older Cabal not letting us tell it exactly where to put the documentation. * Use --hyperlink-source when telling Cabal to haddock the library. * Add hscolour to the build-depends. -- Ian Lynagh (wibble) Tue, 20 Nov 2007 00:00:47 +0000 haskell-hgl (3.1.1-2) unstable; urgency=low * Upgrade to "Generic Haskell cabal library packaging files v8": * update-generated-files rule in debian/rules runs update-debian-haskell-files. * Build-dep on haddock >= 0.8-2 in order to get portable .haddock files. * We tell Cabal's configure where to put the docs so that it doesn't break when we move them around behind its back. * Use canonicalise-comma-list around the build-deps in debian/control.in to fix problems where we get an unparsable ", , " when a variable is empty. -- Ian Lynagh (wibble) Mon, 04 Jun 2007 21:53:01 +0000 haskell-hgl (3.1.1-1) unstable; urgency=low * New upstream version. * Fix Setup.hs (type signatures don't match our version of Cabal). * Split off profiling and documentation into separate packages. * debian/control.in now makes much more use of variables, including magic Cabal variables. * Use debhelper level 5 (was 4). * Bump haskell-utils build-dep requirement to 1.8. * Upgrade to "Generic Haskell cabal library debian/rules v0.7": * Generate haddock docs. * -doc package calls gen_contents_index from postinst and postrm. * Use destdir rather than deprecated copy-prefix flag to Setup copy. * Add -X.haddock to dh_compress call. -- Ian Lynagh (wibble) Thu, 10 May 2007 13:39:55 +0100 haskell-hgl (3.1-3) unstable; urgency=low * Upgrade to "Generic Haskell cabal library debian/rules v0.6". Tell setup to use ghc6 rather than ghc, so that the postinst/prerm scripts work when the ghc-pkg symlink doesn't exist or doesn't point to ghc6's ghc-pkg. -- Ian Lynagh (wibble) Mon, 20 Nov 2006 20:50:42 +0000 haskell-hgl (3.1-2) unstable; urgency=low * Update control from control.in to include arm, mips and mipsel in the architecture list. * Upgrade to "Generic Haskell cabal library debian/rules v0.5". Fixes build-failure on non-x86/amd64 due to object splitting being unconditionally enabled. -- Ian Lynagh (wibble) Mon, 23 Oct 2006 12:32:51 +0100 haskell-hgl (3.1-1) unstable; urgency=low * Initial release (was part of ghc6 until version 6.6-1). -- Ian Lynagh (wibble) Fri, 13 Oct 2006 16:43:11 +0000 debian/libghc-hgl-prof.lintian-overrides0000644000000000000000000000011512207704251015507 0ustar # HGL doesn't ship a changelog libghc-hgl-prof binary: no-upstream-changelog