debian/0000755000000000000000000000000012157040454007170 5ustar debian/copyright0000644000000000000000000000132312036250610011113 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: haskell-leksah Maintainer: Jürgen Nicklisch-Franken Source: http://hackage.haskell.org/package/binary-shared Copyright: 2007-2010, Juergen "jutaro" Nicklisch-Franken 2007-2010, Hamish Mackenzie License: GPL-2 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 2 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-2' debian/watch0000644000000000000000000000033012036250610010206 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|leksah-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/leksah \ ([\d\.]*\d)/ debian/compat0000644000000000000000000000000212147616242010371 0ustar 9 debian/patches/0000755000000000000000000000000012157041012010606 5ustar debian/patches/series0000644000000000000000000000007012157040447012033 0ustar ghc-7.6-compatibility.patch quickcheck-2.6-compat.patch debian/patches/quickcheck-2.6-compat.patch0000644000000000000000000000321612157040447015542 0ustar Index: haskell-leksah-0.12.1.3/leksah.cabal =================================================================== --- haskell-leksah-0.12.1.3.orig/leksah.cabal 2013-06-15 12:21:07.213207754 +0200 +++ haskell-leksah-0.12.1.3/leksah.cabal 2013-06-15 12:21:32.333206844 +0200 @@ -123,7 +123,7 @@ hslogger >= 1.0.7 && <1.3, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, ghc >=6.10.1 && <7.7, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, gio >=0.12.2 && <0.13, transformers >=0.2.2.0 && <0.4, - QuickCheck >=2.4.2 && <2.6 + QuickCheck >=2.4.2 && <2.7 exposed-modules: IDE.Leksah IDE.Completion IDE.ImportTool @@ -197,7 +197,7 @@ hslogger >= 1.0.7 && <1.3, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, ghc >=6.10.1 && <7.7, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, gio >=0.12.2 && <0.13, transformers >=0.2.2.0 && <0.4, - QuickCheck >=2.4.2 && <2.6 + QuickCheck >=2.4.2 && <2.7 else hs-source-dirs: main build-depends: leksah ==0.12.1.3, base >=4.0.0.0 && <= 5 @@ -214,7 +214,7 @@ type: exitcode-stdio-1.0 hs-source-dirs: tests main-is: Tests.hs - build-depends: base >= 4.0.0.0 && <4.7, Cabal >=1.6.0.1 && <1.17, QuickCheck >=2.4.2 && <2.6, + build-depends: base >= 4.0.0.0 && <4.7, Cabal >=1.6.0.1 && <1.17, QuickCheck >=2.4.2 && <2.7, leksah ==0.12.1.3 debian/patches/ghc-7.6-compatibility.patch0000644000000000000000000002166012145674702015573 0ustar From 04bfcb664d3672adc06ed9646b337b2a8fe7784d Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Wed, 10 Oct 2012 17:25:06 +1300 Subject: [PATCH] GHC 7.6 fixes --- leksah.cabal | 28 ++++++++++++++-------------- src/IDE/BufferMode.hs | 9 ++++++++- src/IDE/Core/Types.hs | 8 +++++++- src/IDE/Pane/SourceBuffer.hs | 5 +++-- src/IDE/Utils/GUIUtils.hs | 7 ++++--- 5 files changed, 36 insertions(+), 21 deletions(-) Index: b/leksah.cabal =================================================================== --- a/leksah.cabal +++ b/leksah.cabal @@ -94,7 +94,7 @@ includes: windows.h -- include-dirs: C:/cygwin/usr/include/w32api else - build-depends: unix >=2.3.1.0 && <2.6 + build-depends: unix >=2.3.1.0 && <2.7 if os(osx) build-depends: gtk-mac-integration >= 0.0.0.2 && <0.2 @@ -113,17 +113,17 @@ hs-source-dirs: src default-language: Haskell98 - build-depends: Cabal >=1.6.0.1 && <1.15, base >=4.0.0.0 && <4.6, binary >=0.5.0.0 && <0.6, - bytestring >=0.9.0.1 && <0.10, containers >=0.2.0.0 && <0.5, directory >=1.0.0.2 && <3.1, + build-depends: Cabal >=1.6.0.1 && <1.17, base >=4.0.0.0 && <4.7, binary >=0.5.0.0 && <0.6, + bytestring >=0.9.0.1 && <0.11, containers >=0.2.0.0 && <0.6, directory >=1.0.0.2 && <3.1, filepath >=1.1.0.1 && <1.4, glib >=0.10 && <0.13, gtk >=0.10 && <0.13, gtksourceview2 >=0.10.0 && <0.13, mtl >=1.1.0.2 && <2.2, old-time >=1.0.0.1 && <1.2, parsec >=2.1.0.1 && <3.2, pretty >=1.0.1.0 && <1.2, regex-tdfa ==1.1.*, regex-base ==0.93.*, utf8-string >=0.3.1.1 && <0.4, array >=0.2.0.0 && <0.5, time >=0.1 && <1.5, ltk >= 0.12.1.0 && <0.13, binary-shared >= 0.8 && <0.9, deepseq >= 1.1.0.0 && <1.4, - hslogger >= 1.0.7 && <1.2, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, - ghc >=6.10.1 && <7.5, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, + hslogger >= 1.0.7 && <1.3, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, + ghc >=6.10.1 && <7.7, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, gio >=0.12.2 && <0.13, transformers >=0.2.2.0 && <0.4, - QuickCheck >=2.4.2 && <2.5 + QuickCheck >=2.4.2 && <2.6 exposed-modules: IDE.Leksah IDE.Completion IDE.ImportTool @@ -165,7 +165,7 @@ includes: windows.h -- include-dirs: C:/cygwin/usr/include/w32api else - build-depends: unix >=2.3.1.0 && <2.6 + build-depends: unix >=2.3.1.0 && <2.7 if os(osx) build-depends: gtk-mac-integration >= 0.0.0.2 && <0.2 @@ -187,17 +187,17 @@ if impl(ghc < 7.0) hs-source-dirs: src, main - build-depends: Cabal >=1.6.0.1 && <1.15, base >=4.0.0.0 && <4.6, binary >=0.5.0.0 && <0.6, - bytestring >=0.9.0.1 && <0.10, containers >=0.2.0.0 && <0.5, directory >=1.0.0.2 && <3.1, + build-depends: Cabal >=1.6.0.1 && <1.17, base >=4.0.0.0 && <4.7, binary >=0.5.0.0 && <0.6, + bytestring >=0.9.0.1 && <0.11, containers >=0.2.0.0 && <0.6, directory >=1.0.0.2 && <3.1, filepath >=1.1.0.1 && <1.4, glib >=0.10 && <0.13, gtk >=0.10 && <0.13, gtksourceview2 >=0.10.0 && <0.13, mtl >=1.1.0.2 && <2.2, old-time >=1.0.0.1 && <1.2, parsec >=2.1.0.1 && <3.2, pretty >=1.0.1.0 && <1.2, regex-tdfa ==1.1.*, regex-base ==0.93.*, utf8-string >=0.3.1.1 && <0.4, array >=0.2.0.0 && <0.5, time >=0.1 && <1.5, ltk >=0.12.1.0 && <0.13, binary-shared >= 0.8 && <0.9, deepseq >= 1.1.0.0 && <1.4, - hslogger >= 1.0.7 && <1.2, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, - ghc >=6.10.1 && <7.5, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, + hslogger >= 1.0.7 && <1.3, leksah-server >=0.12.1.2 && <0.13, network >= 2.2 && <3.0, + ghc >=6.10.1 && <7.7, strict >= 0.3.2 && <0.4, enumerator >=0.4.14 && <0.5, text >= 0.11.1.5 && < 0.12, gio >=0.12.2 && <0.13, transformers >=0.2.2.0 && <0.4, - QuickCheck >=2.4.2 && <2.5 + QuickCheck >=2.4.2 && <2.6 else hs-source-dirs: main build-depends: leksah ==0.12.1.3, base >=4.0.0.0 && <= 5 @@ -214,7 +214,7 @@ type: exitcode-stdio-1.0 hs-source-dirs: tests main-is: Tests.hs - build-depends: base >= 4.0.0.0 && <4.6, Cabal >=1.6.0.1 && <1.15, QuickCheck >=2.4.2 && <2.5, + build-depends: base >= 4.0.0.0 && <4.7, Cabal >=1.6.0.1 && <1.17, QuickCheck >=2.4.2 && <2.6, leksah ==0.12.1.3 Index: b/src/IDE/BufferMode.hs =================================================================== --- a/src/IDE/BufferMode.hs +++ b/src/IDE/BufferMode.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE FlexibleInstances, DeriveDataTypeable, TypeSynonymInstances, MultiParamTypeClasses #-} +{-# LANGUAGE CPP, FlexibleInstances, DeriveDataTypeable, TypeSynonymInstances, MultiParamTypeClasses #-} ----------------------------------------------------------------------------- -- -- Module : IDE.BufferMode @@ -36,6 +36,9 @@ import Graphics.UI.Gtk (Notebook, castToWidget, notebookPageNum, ScrolledWindow) import Control.Monad.IO.Class (MonadIO(..)) +#if MIN_VERSION_directory(1,2,0) +import Data.Time (UTCTime) +#endif -- * Buffer Basics @@ -49,7 +52,11 @@ , addedIndex :: Int , sourceView :: EditorView , scrolledWindow :: ScrolledWindow +#if MIN_VERSION_directory(1,2,0) +, modTime :: IORef (Maybe (UTCTime)) +#else , modTime :: IORef (Maybe (ClockTime)) +#endif , mode :: Mode } deriving (Typeable) Index: b/src/IDE/Core/Types.hs =================================================================== --- a/src/IDE/Core/Types.hs +++ b/src/IDE/Core/Types.hs @@ -119,6 +119,9 @@ import Control.Monad.Trans.Class (lift) import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reader (ReaderT(..)) +#if MIN_VERSION_directory(1,2,0) +import Data.Time (UTCTime(..)) +#endif -- --------------------------------------------------------------------- -- IDE State @@ -555,5 +558,8 @@ | CompartmentCollect Bool type PackageDescrCache = Map PackageIdentifier ModuleDescrCache +#if MIN_VERSION_directory(1,2,0) +type ModuleDescrCache = Map ModuleName (UTCTime, Maybe FilePath, ModuleDescr) +#else type ModuleDescrCache = Map ModuleName (ClockTime, Maybe FilePath, ModuleDescr) - +#endif Index: b/src/IDE/Pane/SourceBuffer.hs =================================================================== --- a/src/IDE/Pane/SourceBuffer.hs +++ b/src/IDE/Pane/SourceBuffer.hs @@ -134,6 +134,7 @@ import Control.Monad.Trans.Reader (ask) import Control.Monad.IO.Class (MonadIO(..)) import Control.Monad (foldM, forM, filterM, unless, when) +import Control.Exception as E (catch, SomeException) allBuffers :: IDEM [IDEBuffer] allBuffers = getPanes @@ -808,8 +809,8 @@ let text' = if removeTBlanks then unlines $ map removeTrailingBlanks $lines text else text - succ <- liftIO $ catch (do UTF8.writeFile fn text'; return True) - (\e -> do + succ <- liftIO $ E.catch (do UTF8.writeFile fn text'; return True) + (\(e :: SomeException) -> do sysMessage Normal (show e) return False) setModified buf (not succ) Index: b/src/IDE/Utils/GUIUtils.hs =================================================================== --- a/src/IDE/Utils/GUIUtils.hs +++ b/src/IDE/Utils/GUIUtils.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE CPP #-} +{-# LANGUAGE CPP, ScopedTypeVariables #-} ----------------------------------------------------------------------------- -- -- Module : IDE.Utils.GUIUtils @@ -56,6 +56,7 @@ import Graphics.UI.Gtk.Gdk.Enums (Modifier(..)) #endif import Control.Monad.IO.Class (liftIO) +import Control.Exception as E chooseDir :: Window -> String -> Maybe FilePath -> IO (Maybe FilePath) chooseDir window prompt mbFolder = do @@ -134,10 +135,10 @@ openBrowser :: String -> IDEAction openBrowser url = do prefs' <- readIDE prefs - liftIO (catch (do + liftIO (E.catch (do runProcess (browser prefs') [url] Nothing Nothing Nothing Nothing Nothing return ()) - (\ _ -> sysMessage Normal ("Can't find browser executable " ++ browser prefs'))) + (\ (_ :: SomeException) -> sysMessage Normal ("Can't find browser executable " ++ browser prefs'))) return () -- get widget elements (menu & toolbar) debian/control0000644000000000000000000000412012157040447010572 0ustar Source: haskell-leksah Section: haskell Priority: extra Maintainer: Debian Haskell Group Uploaders: Joachim Breitner Build-Depends: debhelper (>= 9) , cdbs , haskell-devscripts (>= 0.8.13) , ghc , libghc-binary-shared-dev (>= 0.8) , libghc-binary-shared-dev (<< 0.9) , libghc-glib-dev (>= 0.10) , libghc-glib-dev (<< 0.13) , libghc-gtk-dev (>= 0.10) , libghc-gtk-dev (<< 0.13) , libghc-gio-dev (>= 0.12.2) , libghc-gio-dev (<< 0.13) , libghc-gtksourceview2-dev (>= 0.10) , libghc-gtksourceview2-dev (<< 0.13) , libghc-mtl-dev (>= 1.1.0.2) , libghc-mtl-dev (<< 2.2) , libghc-transformers-dev (>= 0.2.2.0) , libghc-transformers-dev (<< 0.4) , libghc-ltk-dev (>= 0.12.1.0) , libghc-ltk-dev (<< 0.13) , libghc-parsec3-dev (<< 3.2) , libghc-network-dev (>= 2.2) , libghc-network-dev (<< 3) , libghc-hslogger-dev (>= 1.0.7) , libghc-hslogger-dev (<< 1.3) , libghc-regex-base-dev (>= 0.93) , libghc-regex-base-dev (<< 0.94) , libghc-regex-tdfa-dev (>= 1.1) , libghc-regex-tdfa-dev (<< 1.2) , libghc-leksah-server-dev (>= 0.12.1.2) , libghc-leksah-server-dev (<< 0.13) , libghc-strict-dev (>= 0.3.2) , libghc-strict-dev (<< 0.4) , libghc-enumerator-dev (>= 0.4.14) , libghc-enumerator-dev (<< 0.5) , libghc-text-dev (>= 0.11.1.5) , libghc-text-dev (<< 0.12) , libghc-utf8-string-dev (>= 0.3.1.1) , libghc-utf8-string-dev (<< 0.4) , libghc-quickcheck2-dev (>= 2.4.2) , libghc-quickcheck2-dev (<< 2.7) Standards-Version: 3.9.4 Homepage: http://hackage.haskell.org/package/leksah Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-leksah Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-leksah Package: leksah Depends: ${misc:Depends}, ${shlibs:Depends} , leksah-server (>= 0.12.1), , leksah-server (<< 0.12.2+) Architecture: any Description: haskell editor - GHC interface Leksah is an Haskell IDE. It is written in Haskell and provides a graphical interface based on Gtk. Leksah is a practical tool to support the Haskell development process. debian/rules0000755000000000000000000000114512036250610010242 0ustar #!/usr/bin/make -f DEB_BUILD_DEPENDENCIES = build-arch DEB_SETUP_GHC6_CONFIGURE_ARGS = --datasubdir=$(CABAL_PACKAGE) include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk build/leksah:: build-ghc-stamp install/leksah:: debian/tmp-inst-ghc $(DEB_SETUP_BIN_NAME) copy --builddir=dist-ghc --destdir=debian/$(CABAL_PACKAGE) rm -rf debian/$(CABAL_PACKAGE)/usr/share/doc rm -rf debian/$(CABAL_PACKAGE)/usr/share/$(CABAL_PACKAGE)/data/LICENSE rm -rf debian/$(CABAL_PACKAGE)/usr/share/$(CABAL_PACKAGE)/LICENSE rm -rf debian/$(CABAL_PACKAGE)/usr/share/$(CABAL_PACKAGE)/Readme debian/changelog0000644000000000000000000000452012157040454011043 0ustar haskell-leksah (0.12.1.3-4) unstable; urgency=low * Patch to compile with QuickCheck 2.6 -- Joachim Breitner Sat, 15 Jun 2013 12:25:48 +0200 haskell-leksah (0.12.1.3-3) unstable; urgency=low * Enable compat level 9 -- Joachim Breitner Fri, 24 May 2013 12:51:16 +0200 haskell-leksah (0.12.1.3-2) experimental; urgency=low * Fix leksah-server runtime dependency * Lower binary-shared requirement to >= 0.8, per the cabal file -- Iain Lane Mon, 15 Apr 2013 09:45:11 +0100 haskell-leksah (0.12.1.3-1) experimental; urgency=low [ Joachim Breitner ] * Depend on haskell-devscripts 0.8.13 to ensure this packages is built against experimental * Bump standards version, no change * New upstream release [ Iain Lane ] * Add a backported upstream patch for GHC 7.6 compatibility and update build-deps accordingly. * Remove bump-mtl-dependency patch which is superseded by the above patch. -- Iain Lane Sat, 13 Apr 2013 22:30:38 +0000 haskell-leksah (0.12.0.3-3) unstable; urgency=low * Bump mtl and transformers dependency -- Joachim Breitner Sat, 19 May 2012 19:31:56 +0200 haskell-leksah (0.12.0.3-2) unstable; urgency=low * Add forgotton BD on quickcheck -- Iain Lane Mon, 19 Mar 2012 23:37:21 +0000 haskell-leksah (0.12.0.3-1) unstable; urgency=low * New upstream release * patches/no-process-leksah.patch: Dropped -- Joachim Breitner Tue, 13 Mar 2012 14:33:51 +0100 haskell-leksah (0.10.0.4-2) unstable; urgency=low * Add missing haskell-utf8-string Build-Depends * Standards-Version → 3.9.2, no changes required -- Iain Lane Sun, 29 May 2011 10:29:37 +0100 haskell-leksah (0.10.0.4-1) unstable; urgency=low [ Marco Silva ] * Use ghc instead of ghc6 [ Joachim Breitner ] * New upstream release -- Joachim Breitner Fri, 27 May 2011 20:43:58 +0200 haskell-leksah (0.8.0.6-2) unstable; urgency=low * Depend on leksah-server * New standards version, no change -- Joachim Breitner Fri, 02 Jul 2010 09:05:05 +0200 haskell-leksah (0.8.0.6-1) unstable; urgency=low * Initial release. (Closes: #533303) -- Joachim Breitner Thu, 24 Jun 2010 09:19:03 +0200 debian/source/0000755000000000000000000000000012036250610010461 5ustar debian/source/format0000644000000000000000000000001412036250610011667 0ustar 3.0 (quilt)