Mon Jul 20 06:48:54 BST 2009 Robin Green <gree...@greenrd.org> * Use cautious-file to save files The cautious-file package tries to reduce the risk of data loss
--~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
New patches: [Use cautious-file to save files Robin Green <gree...@greenrd.org>**20090720054854 Ignore-this: b05a76ae0e4384df5f0cd05b19c6f2a0 The cautious-file package tries to reduce the risk of data loss ] hunk ./src/Data/Rope.hs 44 import qualified Data.ByteString as B (null, append, concat, elemIndices) import qualified Data.ByteString as Byte import Data.ByteString (ByteString) -import qualified Data.ByteString.Lazy as LB (toChunks, fromChunks, writeFile, null, readFile) +import qualified Data.ByteString.Lazy as LB (toChunks, fromChunks, null, readFile) import qualified Data.ByteString.Lazy.UTF8 as LB import qualified Data.FingerTree as T hunk ./src/Data/Rope.hs 55 import Data.Monoid import Data.Foldable (toList) import Data.Int + +import System.IO.Cautious (writeFileL) defaultChunkSize :: Int defaultChunkSize = 128 -- in chars! (chunkSize requires this to be <= 256) hunk ./src/Data/Rope.hs 194 writeFile :: FilePath -> Rope -> IO () -writeFile f r = LB.writeFile f $ toLazyByteString r +writeFile f r = writeFileL f $ toLazyByteString r readFile :: FilePath -> IO Rope readFile f = fromLazyByteString `fmap` LB.readFile f hunk ./yi.cabal 344 build-depends: utf8-string >= 0.3.1 build-depends: uniplate build-depends: unix-compat >=0.1 && <0.2 + build-depends: cautious-file >= 0.1.3 && <0.2 ghc-options: -Wall -fno-warn-orphans -threaded -- orphans are a performance warning, but Context: [scion: experiments jeanphilippe.berna...@gmail.com**20090719094610 * Copied stuff from the Server to find things; the functionality to get info about the stuff on the cursor is better. * Tried cabal load; failed. ] [Makefile: add ghc package to interactive rule jeanphilippe.berna...@gmail.com**20090719094544] [cleanup published actions jeanphilippe.berna...@gmail.com**20090719094502] [expose Scion stuff if available jeanphilippe.berna...@gmail.com**20090719094417] [Don't show mini buffer titles for tabs or windows Jeff Wheeler <jeffwhee...@gmail.com>**20090719025509 Ignore-this: f13b34599c9545d22e5e9d60f47b9e09 ] [Use a proper Gtk Statusbar, rather than just a label Jeff Wheeler <jeffwhee...@gmail.com>**20090718223540 Ignore-this: 434a6f538c2035aca2d16995ef609692 ] [Add doc/monads.html, which documents how to run actions in different contexts Jeff Wheeler <jeffwhee...@gmail.com>**20090718221618 Ignore-this: 75b3a6f0a2b1349f6e2c4129c17339fa I'd love if somebody with a better understanding of these monads could mark out which cases are impossible. ] [Char.Unicode: add superscripts Nicolas Pouillard <nicolas.pouill...@gmail.com>**20090718175401 Ignore-this: 5d6b5ce01b91364604bd02b27231e191 ] [Move haskell source files into src/ Jeff Wheeler <jeffwhee...@gmail.com>**20090718151803 Ignore-this: 397bcfe14a6774159d408b76ed67f74c I think this greatly simplifies the structure of the base directory, since we had so many source directories in the root. ] [Store "inserting" attribute in buffer's Attributes Jeff Wheeler <jeffwhee...@gmail.com>**20090718074250 Ignore-this: cb3a7bef598aff38f408bda712863b85 ] [Small -Wall Jeff Wheeler <jeffwhee...@gmail.com>**20090718074226 Ignore-this: a4db1393555aeb3d87a84e7c137d1db6 ] [Support tab abbreviation in Pango Jeff Wheeler <jeffwhee...@gmail.com>**20090718055856 Ignore-this: 4c71ae4cedff8d2e8b35de2d05e43390 ] [Add brief documentation for Yi.Scion.functionType Jeff Wheeler <jeffwhee...@gmail.com>**20090718055821 Ignore-this: af358fe0b3156e7fd0503af23133ac53 ] [Hide left pane entirely until Scion integration is possible Jeff Wheeler <jeffwhee...@gmail.com>**20090718053340 Ignore-this: 943257258e7ed7c0c128aa072c050067 ] [Respect configs to not line-wrap in Pango (adds horizontal scrollbar support) Jeff Wheeler <jeffwhee...@gmail.com>**20090718043917 Ignore-this: f85d431996d7941c0eedcc89401f02ab ] [Correctly show modeline in Pango (and small -Wall) Jeff Wheeler <jeffwhee...@gmail.com>**20090718030411 Ignore-this: 14c66d8a1d6246ea80600970f0e4dedc ] [Show modeline in Pango Jeff Wheeler <jeffwhee...@gmail.com>**20090718022849 Ignore-this: b73c2b34b677ded1c77a60908e28a58d ] [Fix Yi.Config.Default to use functionType scion action by default Jeff Wheeler <jeffwhee...@gmail.com>**20090718012444 Ignore-this: d36a0c838d0b0ed9ee1c9fba40a50c4f ] [Cleanup in Yi.Scion (and yi.cabal) Jeff Wheeler <jeffwhee...@gmail.com>**20090717234111 Ignore-this: ebc69031d112f37be61ab771c597da2a ] [Begin Yi.Snippets.Haskell Jeff Wheeler <jeffwhee...@gmail.com>**20090717223905 Ignore-this: df637f5aa30b6b11d2af9aecd42484d7 As far as I can tell, dependent bits don't currently work. Is this correct? ] [Update my config, based on Yi.Scion Jeff Wheeler <jeffwhee...@gmail.com>**20090717223116 Ignore-this: c5aa2626985e47b3b92ecc85d0c5ed25 ] [Integrate Jeff's scion bindings jeanphilippe.berna...@gmail.com**20090717210028 Ignore-this: 846107b07de052d21fea418291d62af7 ] [add Jeff's config jeanphilippe.berna...@gmail.com**20090717202115 Ignore-this: 156fbfba29496d7efc760aed13ce1c4c ] [grepFind: fix argument order jeanphilippe.berna...@gmail.com**20090716094545 Ignore-this: 43614cb6a300dec516482cd39306ec6a ] [Syntax/Haskell.hs: Small improvements ande...@student.chalmers.se**20090715095310 Ignore-this: a6846c241b670efb5cc3cc3b0779aa8f ] [TAG 0.6.1 Jeff Wheeler <jeffwhee...@gmail.com>**20090714203551 Ignore-this: 3a5417411f2772b433887f3c80c44627 ] Patch bundle hash: 989a6db4b1ff3de7e92a84cff7aa09347b90b9da