diff --git a/Application.hs b/Application.hs index e2214dc..614f4bf 100644 --- a/Application.hs +++ b/Application.hs @@ -1,8 +1,8 @@ {-# LANGUAGE OverloadedStrings #-} module Application where -import Shortener.Common -import Shortener.UrlTable +import Breve.Common +import Breve.UrlTable import Web.Simple import Web.Simple.Static diff --git a/Shortener/Common.hs b/Breve/Common.hs similarity index 96% rename from Shortener/Common.hs rename to Breve/Common.hs index e25657d..6da9131 100644 --- a/Shortener/Common.hs +++ b/Breve/Common.hs @@ -1,5 +1,5 @@ {-# LANGUAGE MultiParamTypeClasses #-} -module Shortener.Common where +module Breve.Common where import Control.Applicative import Text.Printf diff --git a/Shortener/Generator.hs b/Breve/Generator.hs similarity index 96% rename from Shortener/Generator.hs rename to Breve/Generator.hs index 6e27275..f197ebe 100644 --- a/Shortener/Generator.hs +++ b/Breve/Generator.hs @@ -1,4 +1,4 @@ -module Shortener.Generator +module Breve.Generator ( wordID , hashID , Word diff --git a/Shortener/UrlTable.hs b/Breve/UrlTable.hs similarity index 91% rename from Shortener/UrlTable.hs rename to Breve/UrlTable.hs index 591f425..d78d028 100644 --- a/Shortener/UrlTable.hs +++ b/Breve/UrlTable.hs @@ -1,11 +1,11 @@ -module Shortener.UrlTable +module Breve.UrlTable ( UrlTable , records , insert , extract ) where -import Shortener.Generator +import Breve.Generator import Control.Applicative import Control.Monad diff --git a/Main.hs b/Main.hs index 34d085b..be73398 100644 --- a/Main.hs +++ b/Main.hs @@ -2,7 +2,7 @@ module Main where import Application -import Shortener.Common +import Breve.Common import Control.Applicative import Network.Wai.Handler.Warp diff --git a/shortener.cabal b/breve.cabal similarity index 84% rename from shortener.cabal rename to breve.cabal index b74722e..9ea89ad 100644 --- a/shortener.cabal +++ b/breve.cabal @@ -1,4 +1,4 @@ -name: shortener +name: breve version: 0.0.1.0 synopsis: a url shortener description: @@ -6,7 +6,7 @@ description: A web application that provides a simple interface to shortening long urls creating smaller and easy to remember links. -homepage: https://github.com/rnhmjoj/shortener +homepage: https://github.com/rnhmjoj/breve license: MIT license-file: LICENSE author: Rnhmjoj @@ -17,7 +17,11 @@ build-type: Simple extra-source-files: README.md, LICENSE cabal-version: >=1.10 -executable shortener +source-repository head + type: git + location: https://github.com/rnhmjoj/breve + +executable breve main-is: Main.hs default-language: Haskell2010 build-depends: base, simple >= 0.8.0,