From 5fc2e9633d399ef4561bfc9e4c8dd59ac9f97fdd Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 7 Jul 2015 22:41:47 +0200 Subject: [PATCH] Give it a name --- keychain.cabal => skeleton.cabal | 11 +++++------ src/Main.hs | 6 +++--- src/{ => Skeleton}/Parser.hs | 3 ++- src/{ => Skeleton}/Pretty.hs | 4 ++-- src/{ => Skeleton}/Types.hs | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) rename keychain.cabal => skeleton.cabal (74%) rename src/{ => Skeleton}/Parser.hs (99%) rename src/{ => Skeleton}/Pretty.hs (97%) rename src/{ => Skeleton}/Types.hs (94%) diff --git a/keychain.cabal b/skeleton.cabal similarity index 74% rename from keychain.cabal rename to skeleton.cabal index 280e0e0..c2cdaf9 100644 --- a/keychain.cabal +++ b/skeleton.cabal @@ -1,13 +1,12 @@ -name: keychain +name: skeleton version: 0.1.0.0 synopsis: a tool to access the OSX keychain description: - is a command line tool used to quickly access passwords stored - in the OSX keychain. You can search for by account, server name - or any other available attribute and get a list of fuzzy matched - result. The first match is be copied to the clipbdoard. - + skeleton is a command line tool used to quickly access passwords + stored in the OSX keychain. You can search by account, server + name or any other available attribute and get a list of fuzzy + matched result. The first match is be copied to the clipbdoard. license: MIT license-file: LICENSE diff --git a/src/Main.hs b/src/Main.hs index dc89a60..f0b55e0 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -1,8 +1,8 @@ {-# LANGUAGE RecordWildCards #-} -import Types -import Pretty -import Parser +import Skeleton.Types +import Skeleton.Pretty +import Skeleton.Parser import Control.Monad (when) import Data.List (isInfixOf) diff --git a/src/Parser.hs b/src/Skeleton/Parser.hs similarity index 99% rename from src/Parser.hs rename to src/Skeleton/Parser.hs index a76e996..a985136 100644 --- a/src/Parser.hs +++ b/src/Skeleton/Parser.hs @@ -6,7 +6,8 @@ module Parser , runParser ) where -import Types +import Skeleton.Types + import Control.Applicative import Data.Attoparsec.ByteString.Char8 import Data.ByteString.Char8 (pack, unpack) diff --git a/src/Pretty.hs b/src/Skeleton/Pretty.hs similarity index 97% rename from src/Pretty.hs rename to src/Skeleton/Pretty.hs index 99881f4..3463a72 100644 --- a/src/Pretty.hs +++ b/src/Skeleton/Pretty.hs @@ -1,13 +1,13 @@ {-# LANGUAGE RecordWildCards, ViewPatterns #-} {-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-} -module Pretty +module Skeleton.Pretty ( Pretty , pretty , pprint ) where -import Types +import Skeleton.Types import Data.List (intercalate) import System.FilePath (takeBaseName) diff --git a/src/Types.hs b/src/Skeleton/Types.hs similarity index 94% rename from src/Types.hs rename to src/Skeleton/Types.hs index eda7021..c380392 100644 --- a/src/Types.hs +++ b/src/Skeleton/Types.hs @@ -1,4 +1,4 @@ -module Types where +module Skeleton.Types where import Data.Time (LocalTime)