initial commit

This commit is contained in:
Jack Wines 2022-12-15 15:48:13 -08:00
commit 6dd594a726
6 changed files with 123755 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/dist-newstyle/

5
CHANGELOG.md Normal file
View file

@ -0,0 +1,5 @@
# Revision history for spell-checker
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsuspecting world.

20
LICENSE Normal file
View file

@ -0,0 +1,20 @@
Copyright (c) 2022 Jack Wines
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

35
spell-checker.cabal Normal file
View file

@ -0,0 +1,35 @@
cabal-version: 3.0
name: spell-checker
version: 0.1.0.0
-- synopsis:
-- description:
license: MIT
license-file: LICENSE
author: Jack Wines
maintainer: jack@winesj.com
-- copyright:
category: Text
build-type: Simple
extra-doc-files: CHANGELOG.md
-- extra-source-files:
common warnings
ghc-options: -Wall
executable spell-checker
import: warnings
main-is: Main.hs
default-extensions: ScopedTypeVariables OverloadedStrings
OverloadedLists TemplateHaskell DataKinds FlexibleContexts
FlexibleInstances MultiParamTypeClasses OverloadedLabels
TypeFamilies UndecidableInstances RecursiveDo RecordWildCards
DuplicateRecordFields
-- other-modules:
-- other-extensions:
build-depends: base ^>=4.16.4.0,
containers,
text
hs-source-dirs: src-exe
default-language: GHC2021

15
src-exe/Main.hs Normal file
View file

@ -0,0 +1,15 @@
{# LANGUAGE OverloadedStrings #}
module Main where
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Map as M
getEditDistance :: T.Text -> T.Text -> Word
getEditDistance txt0 txt1 = 0
where
editDistances :: M.Map (T.Text, T.Text) Word
editDistances = M.singleton ("" :: T.Text, "" :: T.Text) 0
main :: IO ()
main = putStrLn "Hello, Haskell!"

123679
words.txt Normal file

File diff suppressed because it is too large Load diff