Iniciando o sistema - Paradigmas-2-2017/contact-book GitHub Wiki
Iniciando o sistema
- Clonar o repositório:
username ~/workspace $ git clone https://github.com/Paradigmas-2-2017/contact-book.git
Cloning into 'contact-book'...
- Entrar no diretório:
username ~/workspace $ cd contact-book/
username ~/workspace/contact-book $
- Criar o diretório "database":
username ~/workspace/contact-book $ mkdir database
username ~/workspace/contact-book $ ls
database LICENSE README.md system
- Entrar no diretório "/system":
username ~/workspace/contact-book $ cd system/
username ~/workspace/contact-book/system $
- Iniciar o GHCi, ambiente interativo do GHC:
username ~/workspace/contact-book/system $ ghci
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
Prelude>
- Carregar o módulo principal do sistema:
Prelude> :load Main.hs
[1 of 5] Compiling ModelData ( ModelData.hs, interpreted )
[2 of 5] Compiling File ( File.hs, interpreted )
[3 of 5] Compiling Crud ( Crud.hs, interpreted )
[4 of 5] Compiling Menu ( Menu.hs, interpreted )
[5 of 5] Compiling Main ( Main.hs, interpreted )
Ok, modules loaded: Crud, File, Main, Menu, ModelData.
*Main>
- Iniciar o sistema executando a função principal:
*Main> main