Skip to content

Commit

Permalink
Normalizing Line Endings
Browse files Browse the repository at this point in the history
Added a .gitattributes to normalize line endings to LF (unix).

Added .gitignore, based on original darcs boringfile.
  • Loading branch information
m4dc4p committed Sep 10, 2012
1 parent 5a7ff50 commit 16f61f8
Show file tree
Hide file tree
Showing 14 changed files with 1,342 additions and 1,224 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
@@ -0,0 +1,5 @@
# Auto detect text files and perform LF normalization
* eol=lf

*.pdf -text diff=astextplain
*.PDF -text diff=astextplain
113 changes: 113 additions & 0 deletions .gitignore
@@ -0,0 +1,113 @@
# Boring file regexps:

### compiler and interpreter intermediate files
# haskell (ghc) interfaces
\.hi$
\.hi-boot$
\.o-boot$
# object files
\.o$
\.o\.cmd$
# profiling haskell
\.p_hi$
\.p_o$
# haskell program coverage resp. profiling info
\.tix$
\.prof$
# fortran module files
\.mod$
# linux kernel
\.ko\.cmd$
\.mod\.c$
(^|/)\.tmp_versions($|/)
# *.ko files aren't boring by default because they might
# be Korean translations rather than kernel modules
# \.ko$
# python, emacs, java byte code
\.py[co]$
\.elc$
\.class$
# objects and libraries; lo and la are libtool things
\.(obj|a|exe|so|lo|la)$
# compiled zsh configuration files
\.zwc$
# Common LISP output files for CLISP and CMUCL
\.(fas|fasl|sparcf|x86f)$

### build and packaging systems
# cabal intermediates
\.installed-pkg-config
\.setup-config
# standard cabal build dir, might not be boring for everybody
# ^dist(/|$)
# autotools
(^|/)autom4te\.cache($|/)
(^|/)config\.(log|status)$
# microsoft web expression, visual studio metadata directories
\_vti_cnf$
\_vti_pvt$
# gentoo tools
\.revdep-rebuild.*
# generated dependencies
^\.depend$

### version control systems
# cvs
(^|/)CVS($|/)
\.cvsignore$
# cvs, emacs locks
^\.#
# rcs
(^|/)RCS($|/)
,v$
# subversion
(^|/)\.svn($|/)
# mercurial
(^|/)\.hg($|/)
# git
(^|/)\.git($|/)
# bzr
\.bzr$
# sccs
(^|/)SCCS($|/)
# darcs
(^|/)_darcs($|/)
(^|/)\.darcsrepo($|/)
^\.darcs-temp-mail$
-darcs-backup[[:digit:]]+$
# gnu arch
(^|/)(\+|,)
(^|/)vssver\.scc$
\.swp$
(^|/)MT($|/)
(^|/)\{arch\}($|/)
(^|/).arch-ids($|/)
# bitkeeper
(^|/)BitKeeper($|/)
(^|/)ChangeSet($|/)

### miscellaneous
# backup files
~$
\.bak$
\.BAK$
# patch originals and rejects
\.orig$
\.rej$
# X server
\..serverauth.*
# image spam
\#
(^|/)Thumbs\.db$
# vi, emacs tags
(^|/)(tags|TAGS)$
#(^|/)\.[^/]
# core dumps
(^|/|\.)core$
# partial broken files (KIO copy operations)
\.part$
# waf files, see http://code.google.com/p/waf/
(^|/)\.waf-[[:digit:].]+-[[:digit:]]+($|/)
(^|/)\.lock-wscript$
# mac os finder
(^|/)\.DS_Store$
10 changes: 5 additions & 5 deletions examples/.ghci
@@ -1,5 +1,5 @@
-- Print SQL for a query -- Print SQL for a query
let pSQL query = return $ "Database.HaskellDB.PrintQuery.ppSql " ++ query let pSQL query = return $ "Database.HaskellDB.PrintQuery.ppSql " ++ query
:def pSQL pSQL :def pSQL pSQL

:l Select.hs :l Select.hs
150 changes: 75 additions & 75 deletions examples/DB1/Bool_tbl.hs
@@ -1,75 +1,75 @@
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-} {-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-}
{-# OPTIONS_GHC -fcontext-stack44 #-} {-# OPTIONS_GHC -fcontext-stack44 #-}
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- Generated by DB/Direct -- Generated by DB/Direct
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
module DB1.Bool_tbl where module DB1.Bool_tbl where


import Database.HaskellDB.DBLayout import Database.HaskellDB.DBLayout


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- Table type -- Table type
--------------------------------------------------------------------------- ---------------------------------------------------------------------------


type Bool_tbl = type Bool_tbl =
(RecCons F01 (Expr (Maybe Bool)) (RecCons F01 (Expr (Maybe Bool))
(RecCons F02 (Expr Bool) (RecCons F02 (Expr Bool)
(RecCons F03 (Expr (Maybe Bool)) (RecCons F03 (Expr (Maybe Bool))
(RecCons F04 (Expr Bool) RecNil)))) (RecCons F04 (Expr Bool) RecNil))))


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- Table -- Table
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
bool_tbl :: Table Bool_tbl bool_tbl :: Table Bool_tbl
bool_tbl = baseTable "bool_tbl" $ bool_tbl = baseTable "bool_tbl" $
hdbMakeEntry F01 # hdbMakeEntry F01 #
hdbMakeEntry F02 # hdbMakeEntry F02 #
hdbMakeEntry F03 # hdbMakeEntry F03 #
hdbMakeEntry F04 hdbMakeEntry F04


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- Fields -- Fields
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- F01 Field -- F01 Field
--------------------------------------------------------------------------- ---------------------------------------------------------------------------


data F01 = F01 data F01 = F01


instance FieldTag F01 where fieldName _ = "f01" instance FieldTag F01 where fieldName _ = "f01"


f01 :: Attr F01 (Maybe Bool) f01 :: Attr F01 (Maybe Bool)
f01 = mkAttr F01 f01 = mkAttr F01


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- F02 Field -- F02 Field
--------------------------------------------------------------------------- ---------------------------------------------------------------------------


data F02 = F02 data F02 = F02


instance FieldTag F02 where fieldName _ = "f02" instance FieldTag F02 where fieldName _ = "f02"


f02 :: Attr F02 Bool f02 :: Attr F02 Bool
f02 = mkAttr F02 f02 = mkAttr F02


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- F03 Field -- F03 Field
--------------------------------------------------------------------------- ---------------------------------------------------------------------------


data F03 = F03 data F03 = F03


instance FieldTag F03 where fieldName _ = "f03" instance FieldTag F03 where fieldName _ = "f03"


f03 :: Attr F03 (Maybe Bool) f03 :: Attr F03 (Maybe Bool)
f03 = mkAttr F03 f03 = mkAttr F03


--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- F04 Field -- F04 Field
--------------------------------------------------------------------------- ---------------------------------------------------------------------------


data F04 = F04 data F04 = F04


instance FieldTag F04 where fieldName _ = "f04" instance FieldTag F04 where fieldName _ = "f04"


f04 :: Attr F04 Bool f04 :: Attr F04 Bool
f04 = mkAttr F04 f04 = mkAttr F04

0 comments on commit 16f61f8

Please sign in to comment.