Skip to content

Commit

Permalink
- update Elmish to beta;
Browse files Browse the repository at this point in the history
- rename library to app.
  • Loading branch information
maestrow committed Mar 17, 2018
1 parent 3fdce75 commit b475485
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ source https://www.nuget.org/api/v2
storage: none
clitool dotnet-fable
nuget Fable.Core
nuget Fable.Elmish
nuget Fable.Elmish.React
nuget Fable.Elmish >= 2.0.0-beta-2
nuget Fable.Elmish.React >= 2.0.0-beta-2
nuget Fable.Import.Browser
26 changes: 13 additions & 13 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ NUGET
Fable.Core (1.3.11)
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
NETStandard.Library (>= 1.6.1) - restriction: >= netstandard1.6
Fable.Elmish (1.0.1)
Fable.Core (>= 1.2.4) - restriction: >= netstandard1.6
Fable.PowerPack (>= 1.3) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.Elmish.React (1.0.1)
Fable.Core (>= 1.3.8) - restriction: >= netstandard1.6
Fable.Elmish (>= 1.0.1) - restriction: >= netstandard1.6
Fable.PowerPack (>= 1.3.2) - restriction: >= netstandard1.6
Fable.React (>= 2.0) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.Elmish (2.0.0-beta-2)
Fable.Core (>= 1.3.8) - restriction: >= netstandard2.0
Fable.PowerPack (>= 1.3.4) - restriction: >= netstandard2.0
FSharp.Core (>= 4.3.2) - restriction: >= netstandard2.0
Fable.Elmish.React (2.0.0-beta-2)
Fable.Core (>= 1.3.8) - restriction: >= netstandard2.0
Fable.Elmish (>= 2.0.0-beta-1) - restriction: >= netstandard2.0
Fable.PowerPack (>= 1.3.4) - restriction: >= netstandard2.0
Fable.React (>= 2.1) - restriction: >= netstandard2.0
FSharp.Core (>= 4.3.3) - restriction: >= netstandard2.0
Fable.Import.Browser (1.1.1)
Fable.Core (>= 1.3.7) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.PowerPack (1.3.5) - restriction: >= netstandard1.6
Fable.PowerPack (1.3.5) - restriction: >= netstandard2.0
Fable.Core (>= 1.3.8) - restriction: >= netstandard1.6
Fable.Import.Browser (>= 1.0) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Fable.React (2.1) - restriction: >= netstandard1.6
Fable.React (3.0) - restriction: >= netstandard2.0
Fable.Core (>= 1.3.7) - restriction: >= netstandard1.6
Fable.Import.Browser (>= 0.1) - restriction: >= netstandard1.6
FSharp.Core (>= 4.2.3) - restriction: >= netstandard1.6
Expand All @@ -53,7 +53,7 @@ NUGET
System.Reflection.TypeExtensions (>= 4.3) - restriction: && (< net45) (>= netstandard2.0)
System.Runtime.Loader (>= 4.0) - restriction: && (< net45) (>= netstandard2.0)
System.Security.Cryptography.Algorithms (>= 4.3) - restriction: && (< net45) (>= netstandard2.0)
FSharp.Core (4.3.4) - restriction: >= netcoreapp2.0
FSharp.Core (4.3.4) - restriction: >= netstandard2.0
Microsoft.DiaSymReader (1.2) - restriction: >= netcoreapp2.0
Microsoft.Net.Compilers (>= 2.3) - restriction: || (>= net20) (>= netstandard1.1)
NETStandard.Library (>= 1.6.1) - restriction: && (< net20) (>= netstandard1.1)
Expand Down
5 changes: 2 additions & 3 deletions src/Library.fs → src/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ let init() : Model = 0

// UPDATE

let update msg (model:Model) =
match msg with
let update (model:Model) = function
| Increment -> model + 2
| Decrement -> model - 2

Expand All @@ -32,7 +31,7 @@ module R = Fable.Helpers.React

// VIEW (rendered with React)

let view model dispatch =
let view dispatch model =

R.div []
[ R.button [ OnClick (fun _ -> dispatch Decrement) ] [ R.str "-" ]
Expand Down
2 changes: 1 addition & 1 deletion src/FableElmReactApp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="Library.fs" />
<Compile Include="App.fs" />
</ItemGroup>
<Import Project="..\.paket\Paket.Restore.targets" />
</Project>

0 comments on commit b475485

Please sign in to comment.