From c994882bac012d3924815391dc9f19c5306f39d1 Mon Sep 17 00:00:00 2001 From: Nitin Prakash Date: Mon, 19 Aug 2024 00:12:59 +0530 Subject: [PATCH] APIs for email communication --- azure-email/Azure/Email.hs | 2 ++ azure-email/CHANGELOG.md | 5 +++ azure-email/LICENSE | 21 ++++++++++++ azure-email/azure-email.cabal | 60 +++++++++++++++++++++++++++++++++++ cabal.project | 1 + 5 files changed, 89 insertions(+) create mode 100644 azure-email/Azure/Email.hs create mode 100644 azure-email/CHANGELOG.md create mode 100644 azure-email/LICENSE create mode 100644 azure-email/azure-email.cabal diff --git a/azure-email/Azure/Email.hs b/azure-email/Azure/Email.hs new file mode 100644 index 0000000..4bc78fa --- /dev/null +++ b/azure-email/Azure/Email.hs @@ -0,0 +1,2 @@ +module Azure.Email + ( ) where diff --git a/azure-email/CHANGELOG.md b/azure-email/CHANGELOG.md new file mode 100644 index 0000000..18f52d5 --- /dev/null +++ b/azure-email/CHANGELOG.md @@ -0,0 +1,5 @@ +# Revision history for azure-auth + +## 0.1.0.0 -- YYYY-mm-dd + +* First version. Released on an unsuspecting world. diff --git a/azure-email/LICENSE b/azure-email/LICENSE new file mode 100644 index 0000000..1f229d7 --- /dev/null +++ b/azure-email/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Holmusk + +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. diff --git a/azure-email/azure-email.cabal b/azure-email/azure-email.cabal new file mode 100644 index 0000000..57b36d1 --- /dev/null +++ b/azure-email/azure-email.cabal @@ -0,0 +1,60 @@ +cabal-version: 3.0 +name: azure-email +version: 0.1.0.0 +synopsis: Boilerplace/startkit for azure in Haskell (using servant) +description: This provides from useful functionalities for starting out with Azure in Haskell. + This includes authentication, Key vault, Blob storage and email communication related APIs. +license: MIT +author: Holmusk +maintainer: tech@holmusk.com +category: Azure +build-type: Simple +extra-doc-files: CHANGELOG.md +tested-with: GHC == 9.2.8 + GHC == 9.4.8 + GHC == 9.6.3 + GHC == 9.8.2 + +common common-options + ghc-options: -Wall + -Wincomplete-uni-patterns + -Wincomplete-record-updates + -Wcompat + -Widentities + -Wredundant-constraints + -fhide-source-paths + -Wpartial-fields + -Wunrecognised-pragmas + -Wmissing-deriving-strategies + -Wunticked-promoted-constructors + -Winvalid-haddock + -Woperator-whitespace + -Wredundant-bang-patterns + -Wunused-packages + build-depends: base >= 4.7 && <5 + default-language: GHC2021 + default-extensions: DataKinds + DerivingStrategies + DerivingVia + LambdaCase + NoImportQualifiedPost + NoGeneralisedNewtypeDeriving + OverloadedStrings + OverloadedLabels + RecordWildCards + TypeFamilies + ViewPatterns + if os(linux) + ghc-options: -optl-fuse-ld=gold + ld-options: -fuse-ld=gold + +library + import: common-options + exposed-modules: Azure.Email + build-depends: aeson + , http-client + , servant + , servant-client + , text + , unliftio + default-language: Haskell2010 diff --git a/cabal.project b/cabal.project index 3ac2529..910676f 100644 --- a/cabal.project +++ b/cabal.project @@ -1,4 +1,5 @@ packages: ./azure-auth + ./azure-email ./azure-key-vault ./azure-blob-storage